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
This commit is contained in:
ansaba 2015-07-31 12:09:33 -04:00
parent 12429d058b
commit 024ace9916
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class _Base(plugin.HardwarePollster):
return util.make_sample_from_host(host, return util.make_sample_from_host(host,
name=self.IDENTIFIER, name=self.IDENTIFIER,
sample_type=sample.TYPE_GAUGE, sample_type=sample.TYPE_GAUGE,
unit='B', unit='KB',
volume=value, volume=value,
res_metadata=metadata, res_metadata=metadata,
extra=extra, extra=extra,

View File

@ -32,7 +32,7 @@ class _Base(plugin.HardwarePollster):
return util.make_sample_from_host(host, return util.make_sample_from_host(host,
name=self.IDENTIFIER, name=self.IDENTIFIER,
sample_type=sample.TYPE_GAUGE, sample_type=sample.TYPE_GAUGE,
unit='B', unit='KB',
volume=value, volume=value,
res_metadata=metadata, res_metadata=metadata,
extra=extra) extra=extra)