Merge "Use TYPE_GAUGE rather than TYPE_CUMULATIVE"
This commit is contained in:
commit
5903b7826b
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user