Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueString in Grafana 10 #113

Open
pixeltopic opened this issue Aug 8, 2023 · 1 comment
Open

ValueString in Grafana 10 #113

pixeltopic opened this issue Aug 8, 2023 · 1 comment

Comments

@pixeltopic
Copy link

I noticed this comment here:

ValueString string `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).

@gtirloni
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants