Deploy dashboard data.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-13 00:30:51 +09:00
parent b06b0486a4
commit 6369b92026
4 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ]