Grafana chart - How to automatically import all dashboards from a folder

  • What Grafana version and what operating system are you using?
    5.1.2

  • What are you trying to achieve?
    I am deploying Grafana via Helm and have couple custom dashboards I would like to import while installing.

  • How are you trying to achieve it?
    As of today, those custom dashboards are stored as JSON file (one file per dashboard) in a folder.
    It works but I do have to explicitly declare all dashboards to import where I would like to have a way to have those automatically imported without having to declare it. For example, if I add a new dashboard JSON file to the folder, I would like it to be loaded automatically without having to declare / import it.

  • What happened?
    Dashboards are imported but needs to be declared in dashboards section.

  • What did you expect to happen?
    Have dashboards listed into the dashboards folders imported automatically without having to explicitly declare each dashboard manually.

  • Can you copy/paste the configuration(s) that you are having problems with?
    Here’s my dashboards section:

dashboards:
  default:
    node-exporter:
      file: dashboards/node-exporter.json
    kubernetes-cluster:
      file: dashboards/kubernetes-cluster.json
    cert-manager:
      file: dashboards/cert-manager.json
    aws-limits:
      file: dashboards/aws-limits.json
    detailed-pods-resources:
      file: dashboards/detailed-pods-resources.json
    client-pod-usage:
      file: dashboards/client_pod_usage.json
    kubernetes-capacity-planning:
      file: dashboards/kubernetes-capacity-planning.json
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    None

  • Did you follow any online instructions? If so, what is the URL?

Thanks a lot for you help :slight_smile: