]> 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>
Fri, 23 Apr 2021 11:43:22 +0000 (17:13 +0530)
commit3e26463094137153e05193038815adad7975f123
tree60bc66890aa2d432a34ae2771e254f378dd4317e
parent7088a74fcebc164188f87a0b01ce9853309c18c6
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)

Conflicts:
install-deps.sh (changed dnf to yumdnf)
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]