mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 05:05:59 +02:00
promtool: add page (#5166)
This commit is contained in:
parent
62377822e4
commit
ca2b6850a8
1 changed files with 20 additions and 0 deletions
20
pages/common/promtool.md
Normal file
20
pages/common/promtool.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# 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}}`
|
||||||
|
|
||||||
|
- 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}}`
|
Loading…
Add table
Reference in a new issue