What you will learn in this TP
- Create a contact point and read the payload received
- Write a rule and route it with a policy
- Silence an alert
- Send Prometheus alerts to Observa
- Create an SLO and read its burn-rate alerts
All steps and instructions are shown. Recommended for this lab: semi-guided
Introduction #
Context. You set up the full alerting chain: an Observa rule and the alerts of an existing Prometheus must land in the same place, and Prometheus availability must be tracked by an SLO.
Prerequisites: Docker Compose v2, curl, jq and a browser · Estimated time: 50 min
Setup #
Guided steps, with their solution.
1. Create a webhook contact point
Why? A receiver that prints what it receives lets you check the format (Alertmanager webhook v4) before plugging in Teams or ServiceNow.
Start an HTTP receiver that logs requests, then create a webhook contact point tohttp://host.docker.internal:8085/and test it.2. Write a rule and route it
Why? The policy decides who receives what: a rule without a suitable route does not reach the right team.
Create aTPNodeUprule that fires as long as Node Exporter answers (for the lab), with theseverity="tp"label, then a policy routingseverity="tp"to the webhook. Wait for the notification in theechocontainer logs.3. Silence
Why? A silence suspends notifications during maintenance without disabling the rule.
Create a 30-minute silence onalertname="TPNodeUp", check nothing more reaches the webhook, then read the notification log.4. Centralize Prometheus alerts
Why? Observa exposes the Alertmanager v2 API: an existing Prometheus sends its alerts there without changing its rules.
Add thealertingsection and aWatchdogrule to the demo Prometheus (with theALERT_INGEST_TOKEN), reload it and check the alert shows up in Observa.5. Create an SLO
Why? An SLO turns metrics into a measurable commitment and generates alerts that account for the error budget.
In Alerting & IRM → SLO, create “Prometheus API”: 99.9% objective, 28-day period, with the two queries below. Then open theslorules folder and find the four burn-rate alerts and their windows.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Alerting in Observa: rules, notifications, built-in alerts, SLA and Sigma
Write alert rules in Prometheus format, route notifications in Alertmanager format, enable the 1,...
SLOs, on-call and incidents in Observa
Define SLOs in Observa (error budget, burn rate, multi-window alerts), organize on-call and escal...
Alerting on error budget burn rate (multi-window burn rate)
Why alert on burn rate rather than a threshold, and how to build the multi-window, multi-burn-rat...
Alerts, connectors and SLOs in Kibana
Create alert rules in Kibana (Elasticsearch query, ES|QL, custom threshold, logs), configure conn...
Grafana SLO in Grafana Cloud
Grafana SLO in Grafana Cloud: SLI, objective and error budget, creating a ratio SLO, fast and slo...
Alertmanager: role, architecture and lifecycle of an alert
What Alertmanager does between Prometheus and your teams: deduplication, grouping, routing, silen...
The error budget: making decisions with SLOs
Calculate and track an error budget, write an error budget policy and use it to arbitrate between...
Time-based vs event-based SLO: understanding, computing and choosing (with the Qonto example)
Differences between time-based SLOs (time slices, uptime) and event-based SLOs (good events over ...
Generating Prometheus SLOs with Sloth
Describe an SLO in a few lines with Sloth and automatically generate multi-window recording rules...