Deploy `/etc/logrotate.d/prometheus`.
This commit is contained in:
parent
26ff24d784
commit
ec680b2719
|
@ -0,0 +1,13 @@
|
|||
/var/log/prometheus.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
|
@ -44,6 +44,13 @@ service 'rsyslog' do
|
|||
action :nothing
|
||||
end
|
||||
|
||||
# Depoy `logrotate` configuration for `prometheus`:
|
||||
remote_file '/etc/logrotate.d/prometheus' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
end
|
||||
|
||||
# Depoy `consul` service configuration for `prometheus`:
|
||||
remote_file '/etc/consul.d/service-prometheus.json' do
|
||||
owner 'consul'
|
||||
|
|
Loading…
Reference in New Issue