grafana / helm-charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading dashboards via helm

jeff-cook opened this issue · comments

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?