Observability · Events
Change Events and Deploy Markers
Cheat sheet · https://pcornel.dk/topic.php?topic=6213
Answer
Change events and deploy markers record deployments, feature flags and config changes so they can be overlaid on dashboards and correlated with incidents.
Remember
Emit markers automatically from CI/CD with service, version and author. Show them as Grafana annotations. Compare before/after error rates.
First checks
curl -X POST http://grafana/api/annotations -H 'Content-Type: application/json' -d '{"tags":["deploy","api"],"text":"api v1.2.3"}'— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
CI/CD deploy → marker emitted → dashboard annotation → correlation
Where it usually breaks
Manual changes outside the pipeline leave no marker.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6213