We are trying to route alerts based on namespace Names using email and slack config. Basically, if pod is deployed in test namespace then send email to [email protected] and slack to #test channel. I tried accessing {{ .Labels.namespace }} in email’s to option and also slack’s channel option. It gives “can’t evaluate field Labels in type *template. Data”. Any help would be appreciated.
Thanks. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ae5c4f65-2cef-47ab-bec3-33a815379ff3%40googlegroups.com.

