Setup: GrafanaMain server in cloud and a GrafanaSnapshot server with reverse ngix.
-
Creating an external snapshot from GrafanaMain works almost perfect. Only flaw is that the snapshot does not show up under “dashboard/snapshots” overview.
-
Creating the same snapshot via the API with “external = false” works 100%
-
Creating the same snapshot via the API with external = True does give a (valid) response but clicking the link results in error. Altering the domain to Grafana main shows the snapshot, altering to the snapshot server in “Failed to get dashboard snapshot”.
The response:
{
“deleteKey”: “asdee”,
“deleteUrl”: “http://grafana.staged-by-discourse.com/api/snapshots-delete/asdee”,
“key”: “ased”,
“url”: “http://grafana.staged-by-discourse.com/dashboard/snapshot/ased”
}
The JSON that works for situation 2 ends with:
“expires”: 3600
}
and the json for situation 3 ends with:
“expires”: 3600,
“name”: “een test api”,
“external”: true,
“key”: “ased”,
“deleteKey”:“asdee”
}
The rest is equal.
Anybody having a clue how I make this work?