Skip to content

Commit

Permalink
[grafana] dashboards: Allow changes from Grafana UI
Browse files Browse the repository at this point in the history
В Grafana 6.5.1 появилась возможность сохранять изменения в *provisioned
dashboards*. Эти изменения не попадают в файловую систему, но это всё
равно удобнее, чем создавать клон дашборда.

Ref: grafana/grafana#19820
Docs: https://grafana.com/docs/grafana/v9.1/administration/provisioning/#dashboards
  • Loading branch information
mixayloff-dimaaylov committed Oct 16, 2022
1 parent a0e7d65 commit e00e067
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
# # config file version
# docs: https://grafana.com/docs/grafana/v9.1/administration/provisioning/#dashboards
apiVersion: 1

providers:
- name: 'ClickHouse New'
orgId: 1
folder: ''
type: file
options:
path: /var/lib/grafana/dashboards
# <string> an unique provider name. Required
- name: 'ClickHouse New'
# <int> Org id. Default to 1
orgId: 1
# <string> name of the dashboard folder.
folder: ''
# <string> folder UID. will be automatically generated if not specified
folderUid: ''
# <string> provider type. Default to 'file'
type: file
# <bool> disable dashboard deletion
disableDeletion: true
# <int> how often Grafana will scan for changed dashboards
updateIntervalSeconds: 10
# <bool> allow updating provisioned dashboards from the UI
allowUiUpdates: true
options:
# <string, required> path to dashboard files on disk. Required when using the 'file' type
path: /var/lib/grafana/dashboards
# <bool> use folder names from filesystem to create folders in Grafana
foldersFromFilesStructure: true
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
# # config file version
# docs: https://grafana.com/docs/grafana/v9.1/administration/provisioning/#dashboards
apiVersion: 1

#providers:
# - name: 'default'
# orgId: 1
# folder: ''
# type: file
# options:
# path: /var/lib/grafana/dashboards
# providers:
# # <string> an unique provider name. Required
# - name: 'a unique provider name'
# # <int> Org id. Default to 1
# orgId: 1
# # <string> name of the dashboard folder.
# folder: ''
# # <string> folder UID. will be automatically generated if not specified
# folderUid: ''
# # <string> provider type. Default to 'file'
# type: file
# # <bool> disable dashboard deletion
# disableDeletion: false
# # <int> how often Grafana will scan for changed dashboards
# updateIntervalSeconds: 10
# # <bool> allow updating provisioned dashboards from the UI
# allowUiUpdates: false
# options:
# # <string, required> path to dashboard files on disk. Required when using the 'file' type
# path: /var/lib/grafana/dashboards
# # <bool> use folder names from filesystem to create folders in Grafana
# foldersFromFilesStructure: true

0 comments on commit e00e067

Please sign in to comment.