Merge "Remove old stats from whisper"
This commit is contained in:
commit
0e0f4a003b
@ -218,5 +218,15 @@ class graphite(
|
||||
Vcsrepo['/opt/statsd']],
|
||||
}
|
||||
|
||||
# remove any stats that haven't been updated for ~9 months and
|
||||
# remove empty dirs
|
||||
cron { 'remove_old_stats':
|
||||
user => 'root',
|
||||
hour => '2',
|
||||
minute => '0',
|
||||
command => 'find /var/lib/graphite/storage/whisper -type f -mtime +270 -name \*.wsp -delete; find /var/lib/graphite/storage/whisper -depth -type d -empty -delete > /dev/null',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user