I have below helm charts. Grafana chart version: 8.8.1. I'm trying to preload the dashboard test
into the folder Common
. But the result is the dashboard test
showed up under the root directory, the folder Common
also showed up but empty. How do I load it into the folder?
values
grafana:
sidecar:
dashboards:
enabled: true
searchNamespace: ALL
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: common
orgId: 1
folder: Common
type: file
disableDeletion: false
options:
path: /var/lib/grafana/dashboards/common
dashboardsConfigMaps:
common: "common-dashboards"
configmap:
apiVersion: v1
kind: ConfigMap
metadata:
name: common-dashboards
labels:
grafana_dashboard: "1"
data:
test.json: |
{{ .Files.Get "dashboards/test.json" | indent 4 }}