Deploy `systemd` config for `exporter_proxy`.
This commit is contained in:
parent
3657d7c698
commit
e20ba94025
|
@ -28,17 +28,15 @@ remote_file "#{CONFDIR}#{CONF}" do
|
|||
mode '644'
|
||||
end
|
||||
|
||||
remote_file '/etc/supervisor/conf.d/exporter_proxy.conf' do
|
||||
remote_file '/etc/systemd/system/exporter_proxy.service' do
|
||||
user 'root'
|
||||
group 'root'
|
||||
|
||||
mode '644'
|
||||
|
||||
notifies :restart, 'service[supervisor]'
|
||||
end
|
||||
|
||||
service 'supervisor' do
|
||||
action :nothing
|
||||
service 'exporter_proxy' do
|
||||
action [:enable, :start]
|
||||
end
|
||||
|
||||
# Firewall settings here:
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Exporter Proxy
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/bin/exporter_proxy -config /etc/prometheus_exporters.d/exporter_proxy/config.yml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue