- Prometheus is distributed with promtool which, among other functions, can check a configuration file for issues:
promtool check config /etc/prometheus/prometheus.yml
- The promtool utility can also read metrics in the Prometheus exposition format from stdin and validate them according to the current Prometheus standards:
curl -s http://prometheus:9090/metrics | promtool check metrics
- The promtool utility can be used to run instant queries against a Prometheus instance:
promtool query instant 'http://prometheus:9090' 'up == 1'
- You can use promtool to find every label value for a given label name. One example is the following:
promtool query labels 'http://prometheus:9090' 'mountpoint'
- By adding ...