helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

How use `grafana_dashboard_folder` for create sub folder?

Open batazor opened this issue 1 year ago • 5 comments

I would like to take advantage of grafana 1.11's ability to create subdirectories, unfortunately now if I do grafana_dashboard_folder: Boundaries/Link Boundary - I get a Link Boundary folder

Is there any way to create sub-directories now?

batazor avatar Jun 01 '24 19:06 batazor

@batazor In my case I'm using the dashboard sidecar and I suspect there is a limitation due to the k8s-sidecar itself so potentially not fixable via Helm chart update?

This is a docker container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in an local folder

I can be wrong but it does not seem to support "folder in folder"

m4vr0x avatar Jun 19 '24 01:06 m4vr0x

I also noticed this note (recently added?) to Grafana provisioning doc

NOTE This feature doesn’t currently allow you to create nested folder structures, that is, where you have folders within folders.

m4vr0x avatar Jun 19 '24 01:06 m4vr0x

I have the same problem.

apiVersion: v1
data:
  dashboard.json: |-
kind: ConfigMap
metadata:
  annotations:
    grafana_folder: folder/sub-folder
  creationTimestamp: '2025-02-27T12:21:23Z'
  labels:
    app.kubernetes.io/managed-by: Helm
    grafana_dashboard: '1'
  name: dashboard

And what im getting is sub-folder being created in the dashboards root folder and not under root/folder/

nmbmarques avatar Mar 04 '25 12:03 nmbmarques

Any update on this?

aldosr avatar Mar 20 '25 15:03 aldosr

https://github.com/grafana/grafana/issues/103950

Lukas-solar avatar Jun 13 '25 16:06 Lukas-solar