]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard:test prometheus rules through promtool
authorAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 3 Feb 2021 07:23:56 +0000 (12:53 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 21 Apr 2021 13:53:34 +0000 (19:23 +0530)
commit993c23b9f8941634c68c599eee822d9db87fcb90
tree8194e366362ef26cde2687de885d5d669f13007e
parent3b333ac5af391a88aabc66aa36f3eb35da82168c
mgr/dashboard:test prometheus rules through promtool

This PR intends to add unit testing for prometheus rules using promtool. To run the tests run 'run-promtool-unittests.sh' file.

Fixes: https://tracker.ceph.com/issues/45415
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 53a5816deda0874a3a37e131e9bc22d88bb2a588)
install-deps.sh
monitoring/prometheus/alerts/test_alerts.yml [new file with mode: 0644]
src/test/CMakeLists.txt
src/test/run-promtool-unittests.sh [new file with mode: 0755]