camptocamp / grafana-prometheus-alertmanager-datasource

Grafana Datasource for the Prometheus Alertmanager
Apache License 2.0
284 stars 57 forks source link

Issues with Stat Panel using Alertmanager Data Source #120

Open muralikanagala opened 2 years ago

muralikanagala commented 2 years ago

Hi All,

We are using Alertmanager data source for Stat panels to get the alert counts. The panel are setup and are working very well. But occasionally we see the counts are 0 even though we have some alerts firing. I am not finding any issues with the panel or the query when this happens. And it gets fixed by itself in sometime. So unable to reproduce it on demand. Below screenshot shows that there are some alerts firing where as the stat panel is showing the count as 0.

Any suggestions/fixes for this issue?

image

thomasklinger1234 commented 2 years ago

We are experiencing the same issue. Any news on that?

gusnakada commented 2 years ago

We are facing the same issue on our grafana.

gusnakada commented 2 years ago

That's worked for me! https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/issues/121

  1. Edit your panel and open the "Transform" tab.
  2. In value options, select "Reduce" and change the "Calculations" to "Count"
  3. Select field to count
muralikanagala commented 2 years ago

This is not helping with Grafana 8.

TDevillechabrolle commented 2 years ago

With Grafana 8.4.1 and plugin in 1.0.0, I have the same error. The transformation tip seems not working in this configuration.

hbollon commented 10 months ago

Hello, can you give a try to the new v2.0.0 release and see if you're always experiencing this issue please?