grafana / helm-charts

Apache License 2.0
1.67k stars 2.28k forks source link

Import folder with dashboards #3371

Open fatsolko opened 1 month ago

fatsolko commented 1 month ago

I use Grafana chart, there is a folder with dashboards with the structure on or public repo with the same structure. Image I need these dashboards to be scattered in Grafana UI also in folders automaticaly Image Now I do it manually by adding the file path to each dashboard.

dashboardProviders:
  games-provider.yaml:
    apiVersion: 1
    providers:
      - name: 'games'
        orgId: 1
        folder: 'Games'
        type: file
        disableDeletion: true
        editable: true
        options:
          path: /var/lib/grafana/dashboards/games

dashboards:
  games:
    custom-dashboard:
      file: dashboards/games/custom-dashboard1.json
    custom-dashboard2:
      file: dashboards/games/custom-dashboard2.json

Is it possible to implement this, if so, how?