Grafana helm chart fails to provision dashboards

  • What Grafana version and what operating system are you using?
    Kubernetes (via k3s) version v1.31.6+k3s1
    Grafana helm chart version 8.12.1 (which deploys appver 11.6.0)

  • What are you trying to achieve?
    I am trying to deploy stateless grafana with pre-provisioned dashboards from grafana

  • How are you trying to achieve it?
    Using a custom values file from the grafana helm charts. Here’s my section on provisioning:

      dashboards:
        default:
          node-dashboard:
            #url: 'https://grafana.com./api/dashboards/1860/revisions/37/download'
            gnetId: 1860
            revision: 37
            datasource: Prometheus
      dashboardProviders:
        dashboardproviders.yaml:
          apiVersion: 1
          providers:
          - name: 'default'
            orgId: 1
            folder: ''
            type: file
            disableDeletion: false
            editable: true
            options:
              path: /var/lib/grafana/dashboards/default
  • What happened?
    I see the following code from the download-dashboards sidecar container sidecar, but I do not see the dashboard in the grafana dashboards page. When I shell into the container running grafana, the file /var/lib/grafana/dashboards/default exists but is blank.
+ set -euf                                                                                                                                                                                                                                + mkdir -p /var/lib/grafana/dashboards/default                                                                                                                                                                                         
+ curl -skf --connect-timeout 60 --max-time 60 -H 'Accept: application/json' -H 'Content-Type: application/json;charset=UTF-8' https://grafana.com/api/dashboards/1860/revisions/37/download                                             
+ sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g'                                                                                                                                                                     
stream closed EOF for grafana/grafana-7b8d758c49-m9wh7 (download-dashboards)
  • What did you expect to happen?
    I expected the dashboards are loaded when I open the page in my grafana instance.

  • Can you copy/paste the configuration(s) that you are having problems with?
    See above.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    Repeating error below:
    logger=provisioning.dashboard type=file name=default t=2025-04-22T20:44:36.591412407Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/default/node-dashboard.json error=EOF

  • Did you follow any online instructions? If so, what is the URL?
    I used the documentation on the grafana helm charts repo.