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

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

  • 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:

      file: dashboards/node-exporter.json
      file: dashboards/kubernetes-cluster.json
      file: dashboards/cert-manager.json
      file: dashboards/aws-limits.json
      file: dashboards/detailed-pods-resources.json
      file: dashboards/client_pod_usage.json
      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.

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

Thanks a lot for you help :slight_smile:

This topic was automatically closed after 365 days. New replies are no longer allowed.