Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

25
tldr/promtool Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 {{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}}`