Hey,
So i am trying to automate the process of taking a snapshot using the api. (using data from a prometheus server)
Taking the snapshot works as i can find it back in my webui.
However, if i then stop my prometheus server, the graphs are gone
If i try take the snapshot via the webui, then the graphs stay even after stopping the prometheus server. Is there an extra variable i need to set to be able to save the metrics?
The command i use to take snapshots is:
curl -X POST -H “Authorization: Bearer ”
-H “Accept: application/json”
-H “Content-Type: application/json”
-d @node_exporter.json http://:3000/api/snapshots
with the .json file starting like this (everything inside of “dashboard” is a copy of the json from the dashboard)
{“name”: “node_2025-02-25T11:11:00”, “external”: false, “expires”: 3600, “dashboard”: {
“annotations”: {…}
}}