Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Change Events and Deploy Markers

Direct answer

Change events and deploy markers record deployments, feature flags and config changes so they can be overlaid on dashboards and correlated with incidents.

When to use this

Use it to answer "what changed?" during incidents.

First 30 seconds

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.

Operational verification

CI/CD deploy → marker emitted → dashboard annotation → correlation

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
Scope / prerequisiteUse it to answer "what changed?" during incidents.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points

Emit markers automatically from CI/CD with service, version and author. Show them as Grafana annotations. Compare before/after error rates.

Key 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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

ChangeSource
Application deploys and rollbacksCI/CD pipeline
Feature-flag changesFlag service webhook
Infrastructure and config changesTerraform/Ansible runs, GitOps sync events
Database migrationsMigration tool
Manual changes and maintenanceChange 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

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.

Aliases that resolve here
change events and deploy markersdeploy annotations grafanachange events
Confirmation

Confirm action

Continue?