Merge branch 'alertmanager-supervisord' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2020-09-12 15:55:11 +09:00 committed by Gitea
commit d16d6e46d9
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