What you will learn in this TP
- Write an alert rule
- Route to a receiver
- Use silences and amtool
End-to-end alerting #
What you will learn in this section
- Write an alert rule
- Route to a receiver
- Use silences and amtool
Context. An alert nobody receives protects nothing. You build the whole chain: Prometheus rule, Alertmanager routing, notification and a silence during maintenance.
Prerequisites : Docker Compose · Estimated time : 40 min
From rule to notification.1. Deploy the stack
Why? The three components must see each other: Prometheus evaluates, Alertmanager notifies, the exporter provides the target.
Prometheus, Alertmanager and anode-exporterwith Docker Compose.2. Write the alert rule
Why?
Fireforavoids firing on a few seconds' blip: the alert goes through pending before firing.InstanceDownwhen a target stops answering for 1 minute.3. Route to a receiver
Why? A test webhook proves the notification really arrives, without depending on a chat tool.
Send the alert to a test webhook (webhook.site or a small local server).4. Silence and validation
Why? Silences let you work without noise;
Create a 30-minute silence then validate the configuration withamtoolvalidates the configuration before deploying.amtool.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Prometheus consomme 12 Go de RAM : comment trouver les métriques coupables ?✓ solved · 2 reply(ies)
- PromQL : quelle différence entre rate() et irate() ?✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
Alerting
The process of notifying teams (via email, Slack, Teams) when a specific event, threshold breach, or anomaly is detected.
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
OpenTelemetry
An open source framework providing standards, APIs, and SDKs to collect and export observability data (traces, metrics, logs) in an agnostic way.
Recommended Articles
Prometheus: alerting with Alertmanager (rules, routing, silences)
Set up Prometheus alerting: alert rules, Alertmanager, routing, grouping, inhibition, silences, S...
Alerting best practices: Prometheus, Alertmanager and on-call
Checklist for effective alerting: symptom-based rules, severities, routing by team, noise reducti...
Alertmanager: role, architecture and lifecycle of an alert
What Alertmanager does between Prometheus and your teams: deduplication, grouping, routing, silen...
Alerting on logs with the Loki Ruler
Set up LogQL alerts and recording rules with the Loki Ruler: configuration, rule files, Alertmana...
Mimir: ruler, Alertmanager and mimirtool
Evaluate recording and alerting rules in Mimir, configure the multi-tenant Alertmanager and autom...
Silences, inhibitions and time intervals in Alertmanager
Reduce alert noise: one-off silences with amtool, inhibition rules (a critical alert mutes second...
Prometheus best practices: metrics, cardinality, rules and operations
Prometheus best practices: metric naming, labels and cardinality, scrape intervals, recording rul...
Writing good Prometheus alerting rules (and testing them)
Design useful alerts: alert on symptoms, choose for and thresholds, severity and team labels, ann...
Prometheus recording rules: speeding up your queries and dashboards
Understand and master Prometheus recording rules: evaluation, naming convention, pitfalls (ratios...