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 →
- 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"}' - Also expose a
deploy_info{service,version}metric or usekube_deployment_status_observed_generationchanges. - Add the version label to request metrics so errors can be split by version during rollouts.
- Include config changes and feature-flag changes in the same event stream.
- 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.
More on Observability & Telemetry Decisions
Your team has metrics and logs but no tracing. A request to checkout fans out to 9 services and nobody can tell where the 2 seconds go. How do you introduce tracing?IntermediateThe monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?IntermediateA developer adds `customer_id` as a label to a request counter "for better debugging". You catch it in code review. What do you say?BeginnerYou need to pick a trace sampling strategy for a service doing 20,000 requests per second.AdvancedEvery team has built their own Grafana dashboards with different panels. During incidents, nobody can find anything.BeginnerA service's logs are unstructured strings like `Order 123 failed for user 9 after 3 retries`. Searching them during incidents is painful.Beginner