-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[grafana] dashboards: Allow changes from Grafana UI
В Grafana 6.5.1 появилась возможность сохранять изменения в *provisioned dashboards*. Эти изменения не попадают в файловую систему, но это всё равно удобнее, чем создавать клон дашборда. Ref: grafana/grafana#19820 Docs: https://grafana.com/docs/grafana/v9.1/administration/provisioning/#dashboards
- Loading branch information
1 parent
a0e7d65
commit e00e067
Showing
2 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
29 changes: 22 additions & 7 deletions
29
image_content/config/grafana/etc/grafana/provisioning/dashboards/clickhouse.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
31 changes: 23 additions & 8 deletions
31
image_content/config/grafana/etc/grafana/provisioning/dashboards/sample.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |