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'
|
mode '644'
|
||||||
end
|
end
|
||||||
|
|
||||||
remote_file '/etc/supervisor/conf.d/exporter_proxy.conf' do
|
remote_file '/etc/systemd/system/exporter_proxy.service' do
|
||||||
user 'root'
|
user 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
|
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :restart, 'service[supervisor]'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
service 'supervisor' do
|
service 'exporter_proxy' do
|
||||||
action :nothing
|
action [:enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Firewall settings here:
|
# 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