Prometheus · Arazzo Workflow
Prometheus Take a TSDB Snapshot for Backup
Version 1.0.0
Size the TSDB, snapshot it, and capture the snapshot directory name.
Provider
Workflows
tsdb-snapshot-backup
Create a TSDB snapshot and return its directory name.
The snapshot endpoint requires the --web.enable-admin-api flag and returns 403 without it. The snapshot lands in the snapshots/ directory under the data directory and uses hard links where possible, so it is cheap to create but still occupies the same filesystem as the live data.
1
checkRuntimeInfo
getRuntimeInfo
Read the runtime properties, including the working directory the snapshot will be written beneath and the storage retention in force.
2
measureTsdb
getTsdbStatus
Read the TSDB statistics. The head block series and chunk counts are the best available estimate of how large the snapshot will be and how long it will take to write.
3
createSnapshot
createTsdbSnapshot
Create the snapshot and capture the generated directory name. That name is the handle the backup job needs — nothing else in the API will report it afterwards.
Source API Descriptions
openapi