Grafana
Annotate Grafana dashboards automatically when changes are logged in ChangeVault.
ChangeVault can create annotations on your Grafana dashboards whenever a change is created or updated. This lets you correlate infrastructure changes with metrics spikes directly on your graphs.
Prerequisites
- A Grafana instance (self-hosted or Grafana Cloud)
- A Grafana API key or Service Account token with the Editor role
- A ChangeVault Pro plan or higher
1. Create a Grafana API key
Grafana Cloud / newer self-hosted (Service Accounts):
- Go to Administration → Service Accounts
- Click Add service account → give it a name (e.g.
changevault) - Set the role to Editor
- Click Add service account token and copy the token
Older Grafana (API Keys):
- Go to Configuration → API Keys
- Click New API Key
- Name:
changevault, Role: Editor - Copy the key
2. Add the connection in ChangeVault
- Go to Integrations → Notifications
- Under Grafana, click Add connection
- Fill in:
- Label — a name for this connection
- Grafana URL — e.g.
https://grafana.yourcompany.comor your Grafana Cloud URL - API key — the token from step 1
- Tags — optional tags added to every annotation (default:
changevault)
- Click Save
3. Test the connection
Click Test next to the connection. ChangeVault will attempt to create a test annotation and report success or a descriptive error.
How annotations work
When a change is created, ChangeVault creates a point annotation on Grafana with:
- The change title as the annotation text
- Tags from your connection config plus the risk level
- The current timestamp
When a change status is updated to completed or rolled_back, a region annotation is created spanning from the change's creation time to now, making it easy to see the duration of the change window on your graphs.
Viewing annotations in Grafana
Annotations appear as vertical lines on time series panels. To show them:
- Open a dashboard in Grafana
- Go to Dashboard settings → Annotations
- Click Add annotation query → select Built-in and enable All panels or configure a query for the
changevaulttag
Removing a connection
Click Delete next to the connection in the Integrations panel. Future changes will no longer be annotated via that connection.