Merge branch 'alertmanager-supervisord' of kazu634/itamae into master
This commit is contained in:
commit
d16d6e46d9
|
@ -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