fix ram usage metric
Showing
... | @@ -164,8 +164,8 @@ class Client: | ... | @@ -164,8 +164,8 @@ class Client: |
logger.info('New process: %s', process) | logger.info('New process: %s', process) | ||
self.processes[entry.pid] = process | self.processes[entry.pid] = process | ||
mem_perc = (process.get_memory_percent() | mem_perc = (float(process.get_memory_info().rss) | ||
/ 100 * args.memory_size) | / (args.memory_size * 1024 ** 2) * 90) | ||
Please
register
or
sign in
to reply
|
|||
metrics.append('vm.%(name)s.memory.usage %(value)f ' | metrics.append('vm.%(name)s.memory.usage %(value)f ' | ||
'%(time)d' % {'name': args.name, | '%(time)d' % {'name': args.name, | ||
'value': mem_perc, | 'value': mem_perc, | ||
... | ... |