Grafana snapshot published to raintank makes annotations API call that fails

  • What Grafana version and what operating system are you using?

v8.0.1 Linux

  • What are you trying to achieve?

Understanding why my grafana snapshot makes an http API call to annotations and if I can prevent them

  • What happened?

I have generated snapshots that get published to snapshots.raintank.io, which are rendering as expected.

However, when I open the snapshot using the URL I get an unauthorized dialogue since the UI makes a call to the annotations API to snapnshots.raintank.io.

I understand that this request is bound to fail since the actual dashboard is not present on raintank but I was wondering if there is a way to suppress this error or the API call itself by adding something to the snapshot.

I am using the snapshot and embedding it in another UI using an iframe so when the “Unauthorized” popup shows up it makes it look like the loading of the snapshot failed which is not true.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    • Error that appears in the UI
      image

    • Failed get request in console being made to snapshots.raintank.io
      image

I’ve got the same problem here, running grafana 11.2.2, using local snapshots rather than external. An API call into /api/annotations is 401’d and I get the same message “Unauthorized”.

On console I see the error “Datasource XXXXXXXX was not found” and no data is displayed in the snapshot. In my case the datasource is Zabbix API.

Did you resolve your problem?

Found here the relevant issues:

The short story is that the snapshot request must include also the data. This is written also in the documentation. That is possible only through UI.