Merge "Use TYPE_GAUGE rather than TYPE_CUMULATIVE"

This commit is contained in:
Jenkins 2014-06-12 20:23:13 +00:00 committed by Gerrit Code Review
commit 5903b7826b
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class BandwidthBytesPollster(_Base):
(nic, info) = c_data
return util.make_sample_from_host(host,
name='network.bandwidth.bytes',
type=sample.TYPE_CUMULATIVE,
type=sample.TYPE_GAUGE,
unit='B',
volume=info.bandwidth,
res_metadata=nic,

View File

@ -24,7 +24,7 @@ class TestNetPollsters(base.TestPollsterBase):
def test_bandwidth(self):
self._check_get_samples(net.BandwidthBytesPollster,
'hardware.network.bandwidth.bytes',
1000, sample.TYPE_CUMULATIVE)
1000, sample.TYPE_GAUGE)
def test_incoming(self):
self._check_get_samples(net.IncomingBytesPollster,