Deploy logrotate
config for webhook
.
This commit is contained in:
parent
da0f63ab5e
commit
e7e720a04a
@ -23,3 +23,10 @@ end
|
||||
service 'rsyslog' do
|
||||
action :nothing
|
||||
end
|
||||
|
||||
# Deploy `logrotate` config for `Alert Manager Webhook Logger`:
|
||||
remote_file '/etc/logrotate.d/webhook' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '0644'
|
||||
end
|
||||
|
13
cookbooks/prometheus/files/etc/logrotate.d/webhook
Normal file
13
cookbooks/prometheus/files/etc/logrotate.d/webhook
Normal file
@ -0,0 +1,13 @@
|
||||
/var/log/alertmanager-webhook.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
Loading…
Reference in New Issue
Block a user