Deploy `supervisord` config for `alertmanager-webhook-logger`.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-13 02:02:19 +09:00
parent 1f08c9a784
commit d27b979ab0
3 changed files with 22 additions and 0 deletions

View File

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

View File

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

View File

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