Monitoring the uptime and availability of services using Heartbeat
An important part of running a web application is ensuring it is available and accessible to users. Various activities can result in an outage or degraded service levels for end users. While logs and metrics provide in-depth information about the workload, monitoring the service from the user's perspective is useful to ensure service standards.
Heartbeat can be set up to continuously monitor assets to ensure they are reachable and configured properly. We will leverage Heartbeat to monitor the Recipe Search Service web page, as well as the Elasticsearch cluster we're using to monitor the web server host.
Follow the instructions to set up and configure the Heartbeat agent:
- Install Heartbeat using the installation options we've already discussed.
- Set up the Heartbeat agent to load the monitor configuration.
Heartbeat uses the concept of monitors to perform uptime checks on a given...