provisioning: adds setting to disable dashboard deletes

This commit is contained in:
bergquist
2018-02-14 14:45:13 +01:00
parent 1a041a2250
commit ad42883fc7
6 changed files with 68 additions and 49 deletions

View File

@@ -184,11 +184,14 @@ providers:
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: false
options:
folder: /var/lib/grafana/dashboards
path: /var/lib/grafana/dashboards
```
When Grafana starts, it will update/insert all dashboards available in the configured folders. If you modify the file, the dashboard will also be updated.
By default Grafana will delete dashboards in the database if the file is removed. You can disable this behavior using the `disableDeletion` setting.
> **Note.** Provisioning allows you to overwrite existing dashboards
> which leads to problems if you re-use settings that are supposed to be unique.