A look into rulers and Alertmanager
We chose Alertmanager and Prometheus for our lab and this book because they are key parts of the Prometheus ecosystem. Alertmanager handles alerts for both Prometheus and Loki, centralizing alert rules and testing with collected metrics and logs. This setup lets us directly use our data with PromQL for Prometheus and LogQL for Loki, as discussed in Chapter 7. Additionally, their integration with Grafana helps us visualize metrics, logs, and alert events together.
To get familiar with Alertmanager and its rules and alerts, let’s take a look at its architecture.
Architecture
The alerting framework within a Prometheus setup includes a ruler
component for initiating alerts and a management
component, Alertmanager, responsible for overseeing the alert’s life cycle, notifications, and routing. Similarly, the Loki ruler component offers comparable functionalities, highlighting the advantages of the composable architecture of our observability...