May 2019
Intermediate to advanced
442 pages
11h 36m
English
The tsdb tool can run against Prometheus' entire database or just a particular block of data, and outputs useful information about the health of that data. To run this tool, we must ensure the Prometheus server is stopped:
vagrant@prometheus:~$ sudo systemctl stop prometheus
We'll be running the tsdb tool targeting the Prometheus database path. For the sake of brevity, we'll limit the output to three entries per section. If no block name is specified as an argument, the last available one will be used:
vagrant@prometheus:~$ sudo tsdb analyze --limit=3 /var/lib/prometheus/data/
The output is split into a couple of sections. In the heading, we can find a summary for the block, including the following:
Read now
Unlock full access