You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueStringstring`json:"valueString"`// TODO: Remove in Grafana 10
Are there plans to replace ValueString with something easier to work with? I'm currently parsing this string in order to associate my Graphite query string with the float64 value, since
Values map[string]float64 `json:"values"`
does not offer the context I need (it only maps the var name to the number whereas I need the name label).
The text was updated successfully, but these errors were encountered:
I hope there is a plan since the official solution is to have an annotation with a Go template that is able to access $values and use that inside a notification template, meaning you have to partially template the notification in each alert. There is currently no way to create a smart notification template that is not brittle when (almost all) information is hidden behind ValueString and has to be manipulated through regular expressions.
I noticed this comment here:
alerting/templates/template_data.go
Line 41 in 793c672
Are there plans to replace
ValueString
with something easier to work with? I'm currently parsing this string in order to associate my Graphite query string with the float64 value, sincedoes not offer the context I need (it only maps the
var
name to the number whereas I need thename
label).The text was updated successfully, but these errors were encountered: