Alert State history shows alerting but still I get no notifications for these alerts

My current preview routing -

But I have this notification policy setup and I should receive an alert in Opsgenie via this -

Also, should I be changing anything while viewing this alert rule option in query because , the state history that I showed was of 28th but I didn’t receive an alert at that time

Also, for your reference I have an example state history where this is working -
Uploading: image.png…
and I receive an alert in Opsgenie too -


So, maybe there’s something that I am missing here

You didn’t provide reproducible example, e. g. it’s is not clear which labels your alert have => it’s not possible to say what’s a problem.

My alert has this label -

But routing preview is saying that’s matching only that top level policy (so it’s emailing alert, not opsgenies) - that indicates problem with labels. You may have some white spaces, typos, there,…
So edit (delete, save, add, save, repeat eventually) alerts labels/notification policy matchers until routing preview is showing ops genie CP.

Now, over here -


I have changed the option to last 7 days, but says no data , how could this differ from alert state history

Sorry, this is off topic.

Ok, but for the preview routing to work will I need the data point or will it just work with labels added ?

Check your routing logic: you are playing with nodata there

Yeah that’s been added so that if there’s no data we don’t want notifications

I have grafana logs sent to splunk is there something that I should search for in that

Hey this has been fixed the problem was that wewere actually receiveing alerts on opsgenie but since the alias were same we faced an issue that alerts for alert instances within a alert rule were getting appended to same alert .
faced this problem -

changed the alias in opsgenie -
{{extraProperties.alertname}}-{{extraProperties. stack}}-{{extraProperties.instance}}-{{extraProperties.job}}
this worked for me and thanks for taking in time and efforts @jangaraj

1 Like