Deploy dashboard data.
This commit is contained in:
parent
b06b0486a4
commit
6369b92026
|
@ -0,0 +1,9 @@
|
|||
# config file version
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'node_exporter'
|
||||
orgId: 1
|
||||
type: file
|
||||
options:
|
||||
path: /var/lib/grafana/provision/dashboards/node_exporter.json
|
|
@ -0,0 +1,9 @@
|
|||
# config file version
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'node_exporter_all_nodes'
|
||||
orgId: 1
|
||||
type: file
|
||||
options:
|
||||
path: /var/lib/grafana/provision/dashboards/node_exporter_all_nodes.json
|
|
@ -0,0 +1,9 @@
|
|||
# config file version
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'synology'
|
||||
orgId: 1
|
||||
type: file
|
||||
options:
|
||||
path: /var/lib/grafana/provision/dashboards/synology.json
|
|
@ -1,3 +1,12 @@
|
|||
# Start provisioning:
|
||||
%w(node_exporter.yaml node_exporter_all_nodes.yaml synology.yaml).each do |conf|
|
||||
remote_file "/etc/grafana/provisioning/dashboards/#{conf}" do
|
||||
owner 'root'
|
||||
group 'grafana'
|
||||
mode '640'
|
||||
end
|
||||
end
|
||||
|
||||
# Start/Enable `grafana`:
|
||||
service 'grafana-server' do
|
||||
action [ :enable, :start ]
|
||||
|
|
Loading…
Reference in New Issue