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

Loading dashboards via helm #3071

Open
jeff-cook opened this issue Apr 10, 2024 · 0 comments
Open

Loading dashboards via helm #3071

jeff-cook opened this issue Apr 10, 2024 · 0 comments

Comments

@jeff-cook
Copy link

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?

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

1 participant