Grafana Annotation Export/Import

Is there a way to export/import Grafana annotations from one instance of Grafana to another? My use case is I have thousands of annotations in an older version of Grafana and would like to export/sync these annotations to a newer version of Grafana. The datasource is easy to port, just point to it in the new version of Grafana but I don’t know of an easy way to port over Grafana annotations located at /api/annotations.

I also sometimes run two versions of Grafana and it would be useful to use one Grafana as a “master” for annotations and have a way to sync the annotations to other grafana VMs in near-real time. I got around this by adding the annotations to each Grafana but it is not an ideal solution.

In general I believe the Grafana annotation features/api/data are super useful.

Thanks in advance.

4 Likes

Question is if we could just have a location where these are stored. I could then just make a mount in my docker container instance and do a backup every day or so.

2 Likes

Can someone on the Grafana team (or an expert user) weigh in on this? Still hunting for an answer over three years later.

Is it possible to save, export, or import annotations on panels? If the rest of the data is portable, why not annotations?

Thank you for any insights.

Edit: Here are some other unanswered post about this:
Export Time Series Data With Annotations
Annotations in Grafana

2 Likes

We’re also in the same situation. Just migrated our grafana from one instance to another, maintaining the version (6.2.5), exported and imported the grafana DB (PSQL 12,7). All working fine except the annotations that were MIA…

3 Likes

Export is available using the Grafana HTTP API.

Try https://YourGrafanaServer/swagger-ui

See: