From 024ace9916d328b9797b8ec06000e0ec00d5b211 Mon Sep 17 00:00:00 2001 From: ansaba Date: Fri, 31 Jul 2015 12:09:33 -0400 Subject: [PATCH] Corrected unit of snmp based harware disk and memory meters The unit of following hardware disk and memory meters is KiloBytes rather than Bytes hardware.disk.size.total hardware.disk.size.used hardware.memory.total hardware.memory.used hardware.memory.buffer hardware.memory.cached hardware.memory.swap.total hardware.memory.swap.avail DocImpact Change-Id: I83680c3aa45e34ac2a4a0e7174a8072cd32bcdac Closes-Bug: #1479491 --- ceilometer/hardware/pollsters/disk.py | 2 +- ceilometer/hardware/pollsters/memory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ceilometer/hardware/pollsters/disk.py b/ceilometer/hardware/pollsters/disk.py index 67735e6f..c23401b2 100644 --- a/ceilometer/hardware/pollsters/disk.py +++ b/ceilometer/hardware/pollsters/disk.py @@ -35,7 +35,7 @@ class _Base(plugin.HardwarePollster): return util.make_sample_from_host(host, name=self.IDENTIFIER, sample_type=sample.TYPE_GAUGE, - unit='B', + unit='KB', volume=value, res_metadata=metadata, extra=extra, diff --git a/ceilometer/hardware/pollsters/memory.py b/ceilometer/hardware/pollsters/memory.py index a83f0b6b..7650eb15 100644 --- a/ceilometer/hardware/pollsters/memory.py +++ b/ceilometer/hardware/pollsters/memory.py @@ -32,7 +32,7 @@ class _Base(plugin.HardwarePollster): return util.make_sample_from_host(host, name=self.IDENTIFIER, sample_type=sample.TYPE_GAUGE, - unit='B', + unit='KB', volume=value, res_metadata=metadata, extra=extra)