Hands-On Infrastructure Monitoring with Prometheus by Joel Bastos

Hands-On Infrastructure Monitoring with Prometheus by Joel Bastos

Author:Joel Bastos
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-05-31T08:34:19+00:00


Using the tsdb tool

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:

Its full path location

The block duration span, which, in standard Prometheus deployments defaults to two hours

The number of series and label names contained in the block

Statistics regarding the number of index entries



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.