Hello,
I am new to Grafana alerting and OnCall, but have been playing with it for the last day and its very nice! However I am somewhat confused on how to do conditional notifications with OnCall depending on the type of alert.
What initially did is set up my alerting rule, which checks if a temperature drop was registered while an device is powered on. I also set up my contact point to be Grafana OnCall, in which I setup an integration for Grafana Alerting. If I understand the functionality of Alerting and OnCall right, then what happens is that Grafana Alerting sends the Alert State to the OnCall integration. The OnCall integration then has routes so that depending on the Alert type it triggers a certain escalation chain. When the alert rule is firing, I configured the escalation chain to start an important notification.
Due to the nature of the query I am using for my alert rule, sometimes there’s no data as there have been no temperature drops. The thing is, if there’s no data I don’t want an important notification (too intrusive for how frequent it happens), I’d like to just have a default notification. How can I achieve this? I can’t set up the alert rule so No Data returns a Normal state, because then the alert won’t be firing in the No Data case. Is there a way to add a No Data tag to the alarm and configure a different escalation chain for that case?
Thanks.
Pablo