1

I have a Grafana question. I have multiple alerts set up based on different services.

Each service has its own dedicated slack channel. I want an alert to trigger a slack notification and dynamically have the recipient (slack channel) to be chosen. I don't want to create a new contact point for each alert.

Can someone confirm if this is possible? It doesn't seem like the Grafana slack contact point recipients can be templated. I'm trying to use Labels as the dynamic variable.

enter image description here

fixnode
  • 97
  • 3
  • 8
  • 32

1 Answers1

0

You can’t access $labels, instead you have to reference .CommonLabels e.g., {{ .CommonLabels.ChannelName }}

paulgrav
  • 614
  • 3
  • 7