Uptime Monitoring
- For the overview of the setup
- Lets create a linux machine and
- install heart beat
- configure heart beat to send metrics to elastic cloud
- We will be configuring heart beat to check if the
- apache server is alive
bash
sudo apt update
sudo apt install apache2 -y
- apache server is alive
- Heart beat installation:
- Refer Here for the overview
- Refer Here for official docs on installing heart beat and Refer Here for apt based installation
-
Configuration:
- All the elastic stack is generally installed and configuration files are stored in similar directories
- config location:
/etc/<prod-name>
- install location:
/usr/share/<prod-name>
-
Edit
/etc/heartbeat/heartbeat.yml
to add cloud id and auth - What has to be monitored
- apache server
- Monitor types: Refer Here
-
Configuration
-
Start heart beat: Refer Here
- Now open kibana & navigate to uptime
- To view th down status. stop the service and wait for the page to reload
- Lets create an alert to send email about status of server
- Exercise: Create an alert to check if the nop-app and nop-db is up or not.