Grafana sidecar preloading dashboard unable to load in the right folder - Stack Overflow

admin2025-04-18  6

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 }}
转载请注明原文地址:http://www.anycun.com/QandA/1744945671a89852.html