Deploy `systemd` config for `filestat_exporter`.
This commit is contained in:
parent
448ceda784
commit
f6f354115d
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Filestat Exporter
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/bin/filestat_exporter --config.file=/etc/prometheus_exporters.d/filestat.yml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -7,13 +7,15 @@ remote_file '/etc/prometheus_exporters.d/filestat.yml' do
|
|||
notifies :restart, 'service[supervisor]'
|
||||
end
|
||||
|
||||
# Deploy the `supervisord` configuration:
|
||||
remote_file '/etc/supervisor/conf.d/filestat_exporter.conf' do
|
||||
# Deploy the `systemd` configuration:
|
||||
remote_file '/etc/systemd/system/filestat_exporter.service' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
end
|
||||
|
||||
notifies :restart, 'service[supervisor]'
|
||||
service 'filestat_exporter' do
|
||||
action [:enable, :start]
|
||||
end
|
||||
|
||||
# Deploy `consul` config for `node_exporter`:
|
||||
|
|
Loading…
Reference in New Issue