What are Grafana annotations?
IntermediateConceptGrafana
Answer
Annotations are event markers on time series panels: deployments, incidents, config changes. They come from a datasource query (for example a Prometheus changes(kube_deployment_status_observed_generation[5m]) > 0 or Loki logs) or are posted via API from CI:
curl -X POST -H "Authorization: Bearer $GRAFANA_TOKEN" -H "Content-Type: application/json" \
https://grafana.example.com/api/annotations \
-d '{"tags":["deploy","api"],"text":"api v2.14.0 deployed"}'
"Did the latency jump right after the deploy?" becomes visible instantly.
More on Grafana
What is Grafana and what is it not?BeginnerWhat is a Grafana datasource and how do you provision one?BeginnerWhat are dashboard variables and what types exist?IntermediateHow do multi-value and "All" variables work in PromQL queries?IntermediateWhat are Grafana's built-in time variables?IntermediateWhat does "dashboards as code" mean and what are the options?Intermediate