{ # Declaratively provision Grafana's data sources, dashboards, and alerting rules. # Grafana's alerting rules is not recommended to use, we use Prometheus alertmanager instead. # https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources services.grafana.provision.dashboards.settings = { apiVersion = 1; providers = [ { # an unique provider name. Required name = "Homelab"; # An organization is an entity that helps you isolate users and resources such as dashboards, # annotations, and data sources from each other. # # Org id. Default to 1 # # If you want to customize this id, you need to create the organizations first. orgId = 1; # provider type. Default to 'file' type = "file"; # disable dashboard deletion disableDeletion = true; # how often Grafana will scan for changed dashboards updateIntervalSeconds = 20; # allow updating provisioned dashboards from the UI allowUiUpdates = false; options = { # path to dashboard files on disk. Required when using the 'file' type path = "/etc/grafana/dashboards/"; # use folder names from filesystem to create folders in Grafana foldersFromFilesStructure = true; }; } ]; }; }