File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed
ansible/roles/grafana/tasks
doc/source/reference/logging-and-monitoring Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 139
139
- inventory_hostname in groups[service.group]
140
140
- service.enabled | bool
141
141
142
- - name : Create custom Grafana dashboards folder
143
- become : true
144
- vars :
145
- service : " {{ grafana_services['grafana'] }}"
146
- file :
147
- dest : " {{ node_config_directory }}/grafana/dashboards/"
148
- state : " directory"
149
- mode : " 0770"
150
- when :
151
- - grafana_custom_dashboards_folder.stat.exists
152
- - grafana_custom_dashboards_folder.stat.isdir
153
- - inventory_hostname in groups[service.group]
154
- - service.enabled | bool
155
-
156
142
- name : Copying over custom dashboards
157
143
vars :
158
144
service : " {{ grafana_services['grafana'] }}"
159
145
copy :
160
- src : " {{ item }}"
161
- dest : " {{ node_config_directory }}/grafana/dashboards/ "
146
+ src : " {{ node_custom_config }}/grafana/dashboards "
147
+ dest : " {{ node_config_directory }}/grafana/"
162
148
mode : " 0660"
163
149
become : true
164
150
when :
165
151
- grafana_custom_dashboards_folder.stat.exists
166
152
- grafana_custom_dashboards_folder.stat.isdir
167
153
- inventory_hostname in groups[service.group]
168
154
- service.enabled | bool
169
- with_fileglob :
170
- - " {{ node_custom_config }}/grafana/dashboards/*.json"
171
155
notify :
172
156
- Restart grafana container
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ Custom Dashboards Provisioning
35
35
36
36
Kolla Ansible sets Custom Dashboards Provisioning using `Dashboard provider <https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards >`_.
37
37
38
- Dashboard's JSON files should be placed into
39
- ``{{ node_custom_config }}/grafana/dashboards/ `` folder.
40
- Dashboards will be imported to Grafana dashboards General Folder.
38
+ Dashboard JSON files should be placed into the
39
+ ``{{ node_custom_config }}/grafana/dashboards/ `` folder. The use of
40
+ sub-folders if also supported when using a custom ``provisioning.yaml ``
41
+ file. Dashboards will be imported into the Grafana dashboards 'General'
42
+ folder by default.
41
43
42
44
Grafana provisioner config can be altered by placing ``provisioning.yaml `` to
43
45
``{{ node_custom_config }}/grafana/ `` folder.
You can’t perform that action at this time.
0 commit comments