Deploy `logrotate` config for `filestat_exporter`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-07 23:34:33 +09:00
parent 7887813153
commit 080eda7535
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/var/log/filestat_exporter.log
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

View File

@ -31,6 +31,13 @@ service 'rsyslog' do
action :nothing
end
# Deploy `logrotate` config:
remote_file '/etc/logrotate.d/filestat_exporter' do
owner 'root'
group 'root'
mode '644'
end
# Deploy `consul` config for `filestat_exporter`:
remote_file '/etc/consul.d/service-filestat_exporter.json' do
owner 'consul'