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
Let me start with I know this is an issue with Helm and not the grafana charts, but I think if any one has solved it is Grafana users.
When loading the JSON for a dashboard into either ConfigMap or GrafanaDashboard if there is a custom legendFormat in the JSON helm will try to template what's inside the {{ }}. And will error when it doesn't see a function with the label name.
Example:
"legendFormat": "{{ label_name }}",
Error: parse error at (grafana/templates/dashboards.json:627): function "label_name" not defined
Manually escaping the {{ seems extremely problematic and error prone.
How have you solved this issue?
The text was updated successfully, but these errors were encountered:
When loading the JSON for a dashboard into either
ConfigMap
orGrafanaDashboard
if there is a customlegendFormat
in the JSON helm will try to template what's inside the{{ }}
. And will error when it doesn't see a function with the label name.Example:
Manually escaping the
{{
seems extremely problematic and error prone.How have you solved this issue?
The text was updated successfully, but these errors were encountered: