grafana-prometheus-alertmanager-datasource icon indicating copy to clipboard operation
grafana-prometheus-alertmanager-datasource copied to clipboard

Show only most critical alerts on a panel

Open xafer337 opened this issue 2 years ago • 1 comments

I have tried to create a panel that shows the number of alerts with the highest severity currently active. We have three levels of severity: Critical (red), warning (orange) and information (green).

image

I was wondering if there was a way to show in a panel only critical alerts in case there are any, ignoring alerts of lesser severity. At the same time, in case there are no critical alerts but warning alerts, show the warnings but no the information alerts.

Right now it shows all alerts at the same time.

image

In this example, there is a critical alert, so I would like to hide the warning and information queries, so that only a red box appears with the number of critical alerts:

image

I have not found any way to do something like this, so I would like to know if there is any possibility of something similar being implemented, or a workaround that I may have overlooked.

xafer337 avatar Jun 13 '22 09:06 xafer337

Hi! Has anyone thought of a solution? Thanks!

xafer337 avatar Sep 29 '22 11:09 xafer337