Deploy `supervisord` config for `alertmanager`.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-12 15:42:56 +09:00
parent 7d4efdd8e7
commit 6ec9cb5539
2 changed files with 17 additions and 0 deletions

View File

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

View File

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