I would like to add an annotation on all panels (graphs) in the Grafana dashboard. I could add annotations manually one-by-one on all panels -- but I hope there is a better way how to do it although I didn't find any information in the official documentation.
I suppose I can write a script using Grafana API to create annotation on all panels in dashboard; however this seems like a complicated workaround more than an actual solution.
Do you know how to easily add annotations on all graphs at once?
add an annotation to a single graph manually, as documented in the grafana docs: https://grafana.com/docs/grafana/latest/dashboards/annotations/#adding-annotations. Make sure to give the annotation a "Tag".
Go to Dashboard Settings (gear icon at the top) > Annotations > New Query. Set the Data Source to: "-- Grafana --". Set Filter By to: "Tags". Enter the tag you used in step 1. Save your changes and you're done.
More details in the official grafana docs: https://grafana.com/docs/grafana/latest/dashboards/annotations/#query-by-tag