Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
annotations appear in more than one panel for a snapshot #12278
I asked this question yesterday but got no reply: I have a simple dashboard with just two chart panels. when i create an annotation manually for one chart in grafan 5, it only appears for that chart/panel as expected, not on the other chart in the dashboard. but when i do a local snapshot using the UI, that annotation appears on both charts? is this a known bug, or if any work around.
i also have a tool i use for generating snapshots using the rest api i included the annotations for all dashboards in the snapshot data json, then i do the snapshot for a specific dashboard, except annotations from other dashboards are included in the specific snapshot i want (easier just to request all annotations for me). so there is definitely a bug in grafana that does not check the panel ID's & dashboard ID combination correctly for snapshot annotations.
I have found so many snapshot issues, it is just not fun anymore, and my company might cancel the use of snapshots now.
referenced this issue
Jun 18, 2018
@londonanthonyoleary we found the bug which is caused by the annotation properties is not copied correctly when creating a snapshot. If you do snapshots thru api, please make sure to include the annotation properties as seen in fix https://github.com/grafana/grafana/pull/12317/files#diff-df8464dc479987e73062daf66a5853b7R126
Thanks for very for looking at it:
In the golang snapshot tool, i call the GET annotations API:
But the response does not contain these fields:
the response is:
@londonanthonyoleary I was referring to when creating a new snapshot thru HTTP API - then you provide the dashboard json model and where the annotations are specified, for each annotations you should add those fields to each annotation. But please note that you'll need to provide real values for them, i.e.