Annotations
Link Grafana annotations to deployments:
curl -X POST http://grafana:3000/api/annotations \
-H 'Content-Type: application/json' \
-d "{\"text\": \"Deployed $VERSION\", \"time\": $(date +%s)000}"
Annotations appear as vertical lines on time-series panels — correlate latency spikes with deploys.
Grafana can also query annotations from Prometheus:
changes(kube_deployment_status_observed_generation{deployment="task-svc"}[1m]) > 0