May 2019
Intermediate to advanced
442 pages
11h 36m
English
This subcommand downloads the metrics exposed by the supplied Prometheus instance in a compressed archive. debug metrics is not commonly used as the /metrics Prometheus endpoint is available to anyone able to run this command; it exists so that it is easier to provide the current state of a Prometheus instance to external assistance (such as the Prometheus maintainers) when asked to. This subcommand can be used as follows:
vagrant@prometheus:~$ promtool debug metrics 'http://prometheus:9090'collecting: http://prometheus:9090/metricsCompiling debug information complete, all files written in "debug.tar.gz".vagrant@prometheus:~$ tar xzvf debug.tar.gz metrics.txtvagrant@prometheus:~$ tail -n 5 metrics.txt # HELP promhttp_metric_handler_requests_total ...
Read now
Unlock full access