Deploy `supervisord` config for `alertmanager-webhook-logger`.
This commit is contained in:
parent
1f08c9a784
commit
d27b979ab0
|
@ -0,0 +1,14 @@
|
|||
# Deploy `supervisor` config for `Alert Manager Webhook Logger`
|
||||
remote_file '/etc/supervisor/conf.d/alertmanager_webhook_logger.conf' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
|
||||
notifies :restart, 'service[supervisor]'
|
||||
end
|
||||
|
||||
# Restart the `supervisor`:
|
||||
service 'supervisor' do
|
||||
action :nothing
|
||||
end
|
||||
|
|
@ -10,6 +10,7 @@ if node['prometheus']['manager']
|
|||
include_recipe './alertmanager_setup.rb'
|
||||
|
||||
include_recipe './alertmanager_webhook_install.rb'
|
||||
include_recipe './alertmanager_webhook_setup.rb'
|
||||
end
|
||||
|
||||
# Install the node_exporter here:
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[program:alertmanager-webhook-logger]
|
||||
command=/usr/local/bin/alertmanager-webhook-logger
|
||||
stdout_logfile=/var/log/supervisor/alertmanager-webhook-logger.log
|
||||
redirect_stderr=true
|
||||
stdout_logfile_maxbytes=1MB
|
||||
stdout_logfile_backups=5
|
||||
autorestart=true
|
Loading…
Reference in New Issue