Alerting: Extract values from MD expr alerts (#34757)

When using mulit-dimensional Grafana managed alerts (e.g. SSE math) extract refIds values and labels so they can be shown in the notification and dashboards.
This commit is contained in:
Kyle Brandt
2021-05-28 11:04:20 -04:00
committed by GitHub
parent 8143991b94
commit b47e7d12e6
4 changed files with 102 additions and 25 deletions
@@ -1613,7 +1613,7 @@ func TestEval(t *testing.T) {
"Alerting"
],
[
""
"[ var='A' labels={} value=1 ]"
]
]
}
@@ -1674,7 +1674,7 @@ func TestEval(t *testing.T) {
"Normal"
],
[
""
"[ var='A' labels={} value=0 ]"
]
]
}