promtool
Tooling for the Prometheus monitoring system. More information: https://prometheus.io/docs/prometheus/latest/getting_started/.
- Check if the configuration files are valid or not (if present report errors):
promtool check config
- Check if the rule files are valid or not (if present report errors):
promtool check rules
- Pass Prometheus metrics over
stdinto check them for consistency and correctness:
curl --silent | promtool check metrics
- Run unit tests for rules config:
promtool test rules
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
