How do you provision dashboards from files?
BeginnerConceptGrafana
Answer
# /etc/grafana/provisioning/dashboards/default.yml
apiVersion: 1
providers:
- name: default
folder: Platform
type: file
disableDeletion: true
allowUiUpdates: false
options:
path: /var/lib/grafana/dashboards
foldersFromFilesStructure: true
Drop JSON files into that path. With allowUiUpdates: false, UI edits cannot be saved, which forces changes through Git.
More on Grafana
What is Grafana and what is it not?BeginnerWhat is a Grafana datasource and how do you provision one?BeginnerWhat are dashboard variables and what types exist?IntermediateHow do multi-value and "All" variables work in PromQL queries?IntermediateWhat are Grafana's built-in time variables?IntermediateWhat does "dashboards as code" mean and what are the options?Intermediate