grafana / helm-charts

Apache License 2.0
1.6k stars 2.24k forks source link

Grafana - dashboard provisioning with folder structure failing #591

Open cathyalex opened 3 years ago

cathyalex commented 3 years ago

Hi, I'm unable to provision the dashboards from my filesystem to the grafana pod. I have enabled the "dashboardProviders" in values.yaml file as below.

dashboardProviders: dashboardproviders.yaml: apiVersion: 1 providers:

I have 2 folders under /var/lib/grafana/dashboards/ in my filesystem - lab-management and kubernetes. image

Each folder has set of json files that needs to be imported. image image

But no dashboards are getting provisioned, when i check the grafana gui after deployment via helm.

I have enabled datasource section as well as shown below.

datasources: datasources.yaml: apiVersion: 1 datasources:

I could see the configured datasource link in grafana gui but not able to see any dashboards. Could you please help? Also do we need to mount these dashboards in any volume or just enabling this "dashboardProviders" in values.yaml would suffice.

Thanks

veeloup commented 3 years ago

Hi @cathyalex Can you provide more infos on which chart and image Version you are using? We are facing the same problem with

We downgraded to chart version 6.13.9 and there it looks fine.

mike2194 commented 2 years ago

bump version: "6.24.1" appVersion: 8.4.2

mike2194 commented 2 years ago

@cathyalex i resolved the issue with ensuring sidecarProvider was the name of the root folder for the dashboard provider:

    dashboards:
      enabled: true
      SCProvider: true
      folder: /tmp/dashboards
      defaultFolderName: "sidecarProvider"
      provider:
        name: "sidecarProvider"
        orgid: 1
        type: file
        disableDelete: true
        foldersFromFilesStructure: true