2021-01-21 18:03:37 +00:00
|
|
|
# promtool
|
|
|
|
|
|
|
|
> 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}}`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Pass Prometheus metrics over `stdin` to check them for consistency and correctness:
|
2021-01-21 18:03:37 +00:00
|
|
|
|
|
|
|
`curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics`
|
|
|
|
|
|
|
|
- Unit tests for rules config:
|
|
|
|
|
|
|
|
`promtool test rules {{test_file.yml}}`
|