Bug #45415
mgr/dashboard: run alertmanager rules through promtool
% Done:
0%
Source:
Tags:
Backport:
nautilus, octopus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:
Description
Given the increasing number of issues found on monitoring, some validation/testing should be put in place to avoid manual/integration testing.
Fortunately Prometheus Alertmanager offers a tool (promtool) for generating fake timeseries and test rules with them: https://prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/.
Related issues
History
#1 Updated by Ernesto Puerta 9 months ago
- Related to Bug #45448: mgr/dashboard: automated tests for Prometheus configuration added
#2 Updated by Alfonso MartÃnez 9 months ago
Alertmanager also has its own tool to check its config:
amtool check-config <config.yml>