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.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?Advanced