Interview Prep/SRE & Reliability/Grafana SLO Dashboards

Deploy annotations stopped appearing on the SLO dashboard after the CI system was migrated.

BeginnerTroubleshootingGrafana SLO Dashboards
Answer

Likely causes → The new pipeline no longer posts to Grafana's annotation API, the service account token expired, or the dashboard's annotation query filters on a tag the new pipeline does not set.

Diagnose →

curl -s -H "Authorization: Bearer $GRAFANA_TOKEN" "$GRAFANA_URL/api/annotations?tags=deploy&limit=5" | jq .

Fix → Add a pipeline step:

curl -s -X POST -H "Authorization: Bearer $GRAFANA_TOKEN" -H "Content-Type: application/json" \
  "$GRAFANA_URL/api/annotations" \
  -d '{"tags":["deploy","checkout"],"text":"checkout 2.14.0 deployed"}'

Prevent → Treat deploy annotations as part of the deployment contract and test them in the pipeline.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Grafana SLO Dashboards