CICD-351 · Prometheus configuration validation
Encyclopedia · Observability and SRE pipelines · All snippets
Previous · CICD-350 · Next · CICD-352
1. Where it fits
- Placement CI run step.
- Prerequisites staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
promtool check config monitoring/prometheus.yml
promtool check rules monitoring/rules/*.yml3. How it works
The tool validates the Prometheus configuration or evaluates rule expectations against known test series.
4. Verify the result
Validate the config and rule files with the same promtool version as the server.
Validation syntax-validated (Bash parse). Status definitions.