2020-10-12 14:56:41 +00:00
|
|
|
# Deploy the `supervisord` configuration:
|
|
|
|
remote_file '/etc/prometheus_exporters.d/filestat.yml' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '644'
|
|
|
|
|
|
|
|
notifies :restart, 'service[supervisor]'
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deploy the `supervisord` configuration:
|
|
|
|
remote_file '/etc/supervisor/conf.d/filestat_exporter.conf' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '644'
|
|
|
|
|
|
|
|
notifies :restart, 'service[supervisor]'
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deploy `consul` config for `node_exporter`:
|
|
|
|
remote_file '/etc/consul.d/service-filestat_exporter.json' do
|
2020-11-22 15:52:14 +00:00
|
|
|
owner 'consul'
|
|
|
|
group 'consul'
|
2020-10-12 14:56:41 +00:00
|
|
|
mode '644'
|
|
|
|
|
2020-11-22 16:42:06 +00:00
|
|
|
notifies :reload, 'service[consul]'
|
2020-10-12 14:56:41 +00:00
|
|
|
end
|
|
|
|
|
2020-11-22 16:42:06 +00:00
|
|
|
service 'consul' do
|
2020-10-12 14:56:41 +00:00
|
|
|
action :nothing
|
|
|
|
end
|