Shift-Based Alert Routing from Grafana to Teams

I’m currently using a Grafana Cloud instance to send alerts for alarms to a single Teams channel, which is monitored by a team of dispatchers. However, due to different shifts, each group prefers to have alerts routed to separate, shift-specific Teams channels.

I’d like to know if it’s possible to configure Grafana Cloud to automatically route alerts to the appropriate Teams channel based on the active shift, as it would be faster than using our current method.

Any advice on how to set up such shift-based routing within Grafana Cloud, or suggestions for alternative solutions, would be greatly appreciated.

If your shifts are “set in stone” (always the same hours), I can think of two approaches:

  1. Play around in your datasource and see if you can set different labels on different shift (e.g. shift 1 is from 9am to 9pm and the other one for the rest of the time. If timestamp is in range for shift one, go to shift one, if not, go to the other) - this might be hard, if not impossible.
  2. Second approach is more of a naive one but might just work for your case. Why not sending alerts to all shifts but set different mute timings when the shift isn’t working.

Those would work with any Grafana though, I don’t know about cloud, I’m not a cloud user :smile: