Define an SLO and error budget in Prometheus using recording rules and Grafana SLO plugin

domain: grafana.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the Grafana SLO plugin (grafana-slo-app) from the plugin catalog and enable it in grafana.ini
  2. Create a Prometheus recording rule that computes a ratio metric for your good-event and total-event counters over a rolling window
  3. In the Grafana SLO UI (or via the SLO HTTP API at /api/plugins/grafana-slo-app/resources/v1/slo), POST a JSON body specifying the slo name, description, target ratio, and the query expressions for ratio or threshold objectives
  4. Verify the plugin auto-generates recording rules and alert rules in the configured ruler backend (Grafana-managed or Mimir ruler)
  5. Open the auto-created SLO dashboard to inspect error budget burn over the chosen compliance window (default 30 days)
  6. Tune the alerting thresholds by updating the SLO object and re-POSTing; confirm new alert rules appear in the Alertmanager

Known gotchas

Related routes

Configure Prometheus recording rules to pre-aggregate SLO burn rate windows for efficient querying
opentelemetry.io · 6 steps · unrated
Implement multiwindow multi-burn-rate SLO alerting for error budget management
prometheus.io · 5 steps · unrated
Define an SLO with Sloth and generate Prometheus recording and alerting rules
grafana.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans