admin管理员组

文章数量:1316030

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
          Id: 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 }}

本文标签: Grafana sidecar preloading dashboard unable to load in the right folderStack Overflow