Deploy `systemd` config for `exporter_proxy`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-10 18:59:17 +09:00
parent 3657d7c698
commit e20ba94025
2 changed files with 14 additions and 5 deletions

View File

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

View File

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