Manage Grafana Cloud SLOs as code using the grafana_slo Terraform resource

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

Steps

  1. Configure the Terraform `grafana` provider with your Grafana Cloud URL and a service account token that has SLO permissions
  2. Define a `grafana_slo` resource with `name`, `description`, a `destination_datasource` block pointing at your Cloud Prometheus/Mimir instance, and a `query` block (e.g. `type = "ratio"` or `"freeform"`)
  3. Add an `objectives` block specifying the target value (0-1) and evaluation `window`
  4. Add `alerting` blocks with `fastburn`/`slowburn` sub-blocks to generate burn-rate alert rules, including annotations and labels
  5. Run `terraform plan`/`apply` and confirm the SLO and its alerts appear in the Grafana Cloud SLO app
  6. Version-control the Terraform config so SLO changes go through code review like other infrastructure

Known gotchas

Related routes

Configure a Grafana SLO using the Grafana SLO plugin (Grafana Cloud)
grafana.com · 6 steps · unrated
Define an SLO and error budget in Prometheus using recording rules and Grafana SLO plugin
grafana.com · 6 steps · unrated
Create a RED method dashboard as code using the Grafana Terraform provider
registry.terraform.io · 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