RousselTMLEARNING

TP · Observa: from discovery to expertise

Lab: Alert, route and track an SLO

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
Mode :

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

Use the Lab 1 stack.

Setup #

Guided steps, with their solution.

  1. 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 to http://host.docker.internal:8085/ and test it.
  2. 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 a TPNodeUp rule that fires as long as Node Exporter answers (for the lab), with the severity="tp" label, then a policy routing severity="tp" to the webhook. Wait for the notification in the echo container logs.
  3. 3. Silence

    Why? A silence suspends notifications during maintenance without disabling the rule.

    Create a 30-minute silence on alertname="TPNodeUp", check nothing more reaches the webhook, then read the notification log.
  4. 4. Centralize Prometheus alerts

    Why? Observa exposes the Alertmanager v2 API: an existing Prometheus sends its alerts there without changing its rules.

    Add the alerting section and a Watchdog rule to the demo Prometheus (with the ALERT_INGEST_TOKEN), reload it and check the alert shows up in Observa.
  5. 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 the slo rules 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

  • ⏱ Estimated time : ≈ 50 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

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...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!