What Grafana version and what operating system are you using?
- 9.4.3
- PostgreSQL
- Slack Contact Point
I have an alert that tracks the latest performance based on Git commits, the query result looks something like this:
{alertname="Performance",server="server1"} 70
{alertname="Performance",server="server2"} 75
I want to include a column so I can display the Git hash in an Annotation/notification:
{alertname="Performance",server="server1",hash="12a8347"} 70
{alertname="Performance",server="server2",hash="74f1289"} 75
Performance result from this commit: {{ $values.hash }}
The problem I’m noticing is that this makes each alert unique because of the Git hash being used in the label grouping. As a result, it seems recovery alerts don’t occur because the group of recovery labels would never match the group of labels that fired. (and alert instances start to pile up for each new unique hash)
Is there a way to include a column in the query and use it for Annotations, but not have it be used as a label for grouping instances?