Hi,
I am new to grafana and I am trying to load dashboard from local json file but its not working as expected.
My folder structure’s are
Components
-Dockerfile
-build.ps1
-install.sh
Grafana
-config.yaml
-test.json
I run the following commands inside docker.
helm upgrade grafana --install -f grafana/config.yaml stable/grafana -n monitoring.
My Config.yaml looks like this
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server
access: proxy
isDefault: true
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: ‘default’
orgId: 1
type: file
disableDeletion: false
editable: true
options:
path: /etc/dashboards
My docker image hasthe test.json in /etc/dashboards.After my deployment,If I check my grafana server logs,I am seeing the below error
2020-07-30T20:17:37.350862196Z t=2020-07-30T20:17:37+0000 lvl=eror msg=“failed to search for dashboards” logger=provisioning.dashboard type=file name=default error=“stat /etc/dashboards: no such file or directory”
Please help us as we are blocked.Any Input is really appreciable.