What does `promtool` do?

BeginnerConceptPrometheus Architecture
Answer

promtool ships with Prometheus and is used in CI and debugging:

promtool check config prometheus.yml
promtool check rules rules/*.yml
promtool test rules tests/alerts_test.yml      # unit test alerts
promtool query instant http://localhost:9090 'up == 0'
promtool tsdb analyze /prometheus               # cardinality by block
promtool check metrics < metrics.txt            # lint exposition

We run check rules and test rules on every pull request that touches alert rules.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture