ValueString in Grafana 10
- Dominant language
- Go
- Stars
- 89
- Forks
- 74
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 8
Description
I noticed this comment here:
https://github.com/grafana/alerting/blob/793c67215ba14d6515b93707caeb7e6d9bf82189/templates/template_data.go#L41
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).
Contributor guide
Research direction
Start with templates/template_data.go at the linked ValueString comment and inspect how Values is exposed in Grafana 10 alerting templates. Reproduce the reported case using a Graphite query and compare the available var-to-number mapping with the needed name label context. Done should be a decided, documented approach for exposing that context or retaining the current representation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100