One of the huge plusses of Grafana is its ability to use templating. But I’m scratching my head wondering why its use is limited when it comes to alerts. Namely:
- You can’t use template variables in a query that has an alert assigned to the panel.
- You can’t use template variables within any part of the alert definition itself. For example, it would be nice to create boiler-plated alert messages by munging template variable within the message. For example: “An error has occurred in the ${dev} environment”.
To me this is an extreme limitation and causes a lot of extra work. Are there any plans on allowing template variables with alerts?