Deploy `supervisord` config for `alertmanager`.
This commit is contained in:
parent
7d4efdd8e7
commit
6ec9cb5539
|
@ -27,6 +27,15 @@ end
|
|||
end
|
||||
end
|
||||
|
||||
# Deploy `supervisord` config:
|
||||
remote_file '/etc/supervisor/conf.d/alertmanager.conf' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
|
||||
notifies :restart, 'service[supervisor]'
|
||||
end
|
||||
|
||||
# Restart the `supervisor`:
|
||||
service 'supervisor' do
|
||||
action :nothing
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[program:alertmanager]
|
||||
command=/usr/local/bin/alertmanager --config.file /etc/prometheus.d/alertmanager.yml
|
||||
stdout_logfile=/var/log/supervisor/alertmanager.log
|
||||
redirect_stderr=true
|
||||
stdout_logfile_maxbytes=1MB
|
||||
stdout_logfile_backups=5
|
||||
autorestart=true
|
||||
stopsignal=HUP
|
Loading…
Reference in New Issue