---
title: "Record deploys on the graphs · Agent Wranglers"
url: https://agentwranglers.se/playbook/operations/metrics-and-traces/deploy-markers
updated: 2026-10-20
licence: "All rights reserved"
---

# Record deploys on the graphs

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Recommended
- Chapter: [Metrics and traces](https://agentwranglers.se/playbook/operations/metrics-and-traces)
- Rule: Mark every deploy and settings change on the dashboards, so a change in a graph can be matched to its cause.
- How: Have the deploy script send an annotation with the version, such as a Grafana annotation or an event in the monitoring tool. Show that tag on every dashboard. Expose the running version as a metric or on the health check.
- Check: After a deploy, the dashboards show a marker at that time with the new version.

Example:

```sh
curl -s -X POST https://grafana.example.com/api/annotations \
  -H "Authorization: Bearer $GRAFANA_TOKEN" -H 'Content-Type: application/json' \
  -d "{\"tags\":[\"deploy\",\"shop\"],\"text\":\"shop $VERSION\"}"
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers operations playbook: https://agentwranglers.se/playbook/operations/metrics-and-traces/deploy-markers`.

- Previous: [Give each service one dashboard](https://agentwranglers.se/playbook/operations/metrics-and-traces/service-dashboards)
- [Metrics and traces](https://agentwranglers.se/playbook/operations/metrics-and-traces)
