{"name":"2018-04-30T21:45:35Z-6e4d24be51aa32e3a"}
From the prometheus server, look in <value of --storage.tsdb.path>/snapshots and you'll see a dir with the name matching the response above.
If you need to recover from snapshot, you can just stop prometheus, delete the items in the storage.tsdb.path directory, and put the contents of the snapshot directory in its place. Or you can update the actual value of the storage.tsdb.path to point to the snapshot, but I prefer the first way.
The snapshot command can be ran from a cron job or similar to trigger regular cleanups.
Since it's creating hard links, space usage and time to initially create is minimal. But if you move the files, and over time you'll see the space needs increase.
You can just rm contents of the snapshot folder when they're no longer needed, or copy them off to a different location after the snapshot is generated The snapshot can not just target a different location initially.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/23547fbb-febe-46b2-97a3-4012ffb7f58f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.