]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: alert badge includes suppressed alerts 38751/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Mon, 4 Jan 2021 05:09:16 +0000 (10:39 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Thu, 7 Jan 2021 05:09:38 +0000 (10:39 +0530)
commitb4e32461f1f8430f223965c245974b2a2dbab3aa
tree16a2b211bffe68c9e7bbb19cc73246084f4e4b91
parent5fbae26e9eea55b88bb2eea479c336ea19d0ddeb
mgr/dashboard: alert badge includes suppressed alerts

On a cluster with alerting enabled, when alerts are triggered, even if they are silenced, the vertical navigation item (Cluster > Monitoring) displays the total number of alerts, including the ones suppressed.This PR intends to fix this issue.

Fixes: https://tracker.ceph.com/issues/48591
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts