Merge "Introduce new log file in /var/log/rss-memory.log"

This commit is contained in:
Zuul 2023-06-01 18:11:19 +00:00 committed by Gerrit Code Review
commit bad31f6be6
1 changed files with 10 additions and 1 deletions

View File

@ -83,8 +83,17 @@ class platform::collectd
group => 'root',
mode => '0600',
}
}
# Crontab entry for rss daily Memory log.
cron { 'memory-logs':
ensure => 'present',
command => '/usr/bin/date >> /var/log/rss-memory.log; /usr/bin/ps -e -o ppid,pid,nlwp,rss:10,vsz:10,comm,cmd --sort=-rss >> /var/log/rss-memory.log', # lint:ignore:140chars
environment => 'PATH=/bin:/usr/bin:/usr/sbin',
minute => '00',
hour => '1',
user => 'root',
}
}
class platform::collectd::runtime {
include ::platform::collectd
}