diff --git a/pages/common/promtool.md b/pages/common/promtool.md new file mode 100644 index 0000000000..ec3dd651be --- /dev/null +++ b/pages/common/promtool.md @@ -0,0 +1,20 @@ +# promtool + +> Tooling for the Prometheus monitoring system. +> More information: . + +- 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}}`