Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

You want to correlate deploys with error spikes automatically. How do you set it up?

BeginnerScenarioObservability & Telemetry Decisions
Answer

Situation read → "What changed?" is the first incident question. Changes should be visible on every graph without searching CI.

What I'd do →

  1. Emit a deploy event from CI/CD or Argo CD to Grafana annotations:
    curl -s -X POST "$GRAFANA_URL/api/annotations" \
      -H "Authorization: Bearer $GRAFANA_TOKEN" -H 'Content-Type: application/json' \
      -d '{"tags":["deploy","checkout"],"text":"checkout v2.14.1 by ci"}'
    
  2. Also expose a deploy_info{service,version} metric or use kube_deployment_status_observed_generation changes.
  3. Add the version label to request metrics so errors can be split by version during rollouts.
  4. Include config changes and feature-flag changes in the same event stream.
  5. Show annotations on the standard service dashboard.

Why → Most incidents are caused by changes; visible changes cut diagnosis time dramatically.

Interview tip → Mention feature-flag flips as changes too — they are often missed.

All SRE & Reliability questions

More on Observability & Telemetry Decisions