promtool
Tooling for the Prometheus monitoring system. More information: <https://prometheus.io/docs/prometheus/latest/getting_started/>.
Install
- All systems
-
curl cmd.cat/promtool.sh
- Debian
-
apt-get install prometheus - Ubuntu
-
apt-get install prometheus - Arch Linux
-
pacman -S prometheus - Kali Linux
-
apt-get install prometheus - Fedora
-
dnf install golang-github-prometheus-prometheus - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install prometheus - OS X
-
brew install prometheus - Raspbian
-
apt-get install prometheus
Tooling for the Prometheus monitoring system. More information: <https://prometheus.io/docs/prometheus/latest/getting_started/>.
-
Check if the config files are valid or not (if present report errors):
promtool check config config_file.yml -
Check if the rule files are valid or not (if present report errors):
promtool check rules rules_file.yml -
Pass Prometheus metrics over `stdin` to check them for consistency and correctness:
curl --silent http://example.com:9090/metrics/ | promtool check metrics -
Unit tests for rules config:
promtool test rules test_file.yml
© tl;dr; authors and contributors