Interview Prep/Monitoring & Observability/Dashboard Design Standards

How do you annotate deployments on dashboards?

BeginnerProductionDashboard Design Standards
Answer

Send an annotation from CD, or derive one from metrics. From the pipeline:

curl -s -X POST https://grafana.example.com/api/annotations \
  -H "Authorization: Bearer $GRAFANA_TOKEN" -H "Content-Type: application/json" \
  -d '{"tags":["deploy","checkout"],"text":"checkout v2.14.0 by pipeline #812"}'

Or a query annotation on changes(kube_deployment_status_observed_generation{deployment="checkout"}[2m]) > 0. "Did it start after a deploy?" is the first incident question.

All Monitoring & Observability questions

More on Dashboard Design Standards