Use it to answer "what changed?" during incidents.
Change Events and Deploy Markers
Change events and deploy markers record deployments, feature flags and config changes so they can be overlaid on dashboards and correlated with incidents.
1. Create an annotation: curl -X POST http://grafana/api/annotations -H 'Content-Type: application/json' -d '{"tags":["deploy","api"],"text":"api v1.2.3"}' (with an API token).
2. Markers on dashboards.
3. Version label on metrics (build_info).
4. Compare before/after.
5. Rollback path.
CI/CD deploy → marker emitted → dashboard annotation → correlation
Context & applicabilityCommon mistakes · platform/version boundaries
- Only some pipelines send deploy events, so dashboards show gaps.
- Events without service/environment labels, making them impossible to filter.
- Feature-flag and configuration changes not recorded — they cause many incidents.
- Change events kept for a shorter time than the metrics they annotate.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Confirm every production deploy creates a marker. Check feature flag changes are recorded too.
Step 2 Common failures Narrow the fault
Manual changes outside the pipeline leave no marker. Time zone mistakes put markers at the wrong time. Too many markers on a shared dashboard hide the relevant one.
Emit markers automatically from CI/CD with service, version and author. Show them as Grafana annotations. Compare before/after error rates.
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
ReferenceWhat it is1 section · depth on demand
How it works
Pipelines post events to an API (for example Grafana annotations) or emit them as logs or metrics such as a build info gauge with a version label.
ReferenceImportant terms & boundaries2 sections · depth on demand
Using change events
Send deployments, feature-flag changes and config changes as annotations (Grafana annotations API, Datadog events, deploy markers in APM). When latency jumps, a marker at the same time points straight to the likely cause. Include version, author, change ticket and environment.
In depth
Why change events matter
Most incidents follow a change. A latency graph with a vertical line labelled checkout 1.42.0 deployed answers "what changed?" in seconds.
Sending a deploy marker from a pipeline (Grafana annotations API)
curl -s -X POST https://grafana.example.com/api/annotations \
-H "Authorization: Bearer $GRAFANA_TOKEN" -H 'Content-Type: application/json' \
-d '{"time": '"$(date +%s%3N)"', "tags": ["deploy","checkout","prod"],
"text": "checkout 1.42.0 by pipeline #8812 (commit 3a8f182)"}'
The time is in epoch milliseconds, UTC; a time-zone mistake puts the marker an hour away from the change.
Markers as metrics
An info metric makes versions queryable and is shown as a step in graphs:
app_build_info{service="checkout", version="1.42.0", commit="3a8f182"} 1
changes(app_build_info{service="checkout"}[1h]) # deploys in the last hour
count by (version) (app_build_info{service="checkout"}) # mixed versions during rollout
A Grafana annotation query on changes(...) > 0 draws markers automatically for every service that exports such a metric.
What to record
| Change | Source |
|---|---|
| Application deploys and rollbacks | CI/CD pipeline |
| Feature-flag changes | Flag service webhook |
| Infrastructure and config changes | Terraform/Ansible runs, GitOps sync events |
| Database migrations | Migration tool |
| Manual changes and maintenance | Change ticket integration, or a simple chat command |
Tag every marker with service and environment so dashboards can filter them; otherwise a busy organisation's markers become a wall of lines.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.