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.
More on Dashboard Design Standards
What is the standard layout for a service dashboard?BeginnerWhat is the difference between RED and USE, and where do you apply each?BeginnerWhat anti-patterns do you see most in Grafana dashboards?BeginnerHow do you structure dashboards so engineers can drill down quickly?IntermediateHow do you use template variables safely on large environments?IntermediateHow do you show latency correctly on a dashboard?Intermediate