Merge "Use TYPE_GAUGE rather than TYPE_CUMULATIVE"
This commit is contained in:
@@ -36,7 +36,7 @@ class BandwidthBytesPollster(_Base):
|
|||||||
(nic, info) = c_data
|
(nic, info) = c_data
|
||||||
return util.make_sample_from_host(host,
|
return util.make_sample_from_host(host,
|
||||||
name='network.bandwidth.bytes',
|
name='network.bandwidth.bytes',
|
||||||
type=sample.TYPE_CUMULATIVE,
|
type=sample.TYPE_GAUGE,
|
||||||
unit='B',
|
unit='B',
|
||||||
volume=info.bandwidth,
|
volume=info.bandwidth,
|
||||||
res_metadata=nic,
|
res_metadata=nic,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class TestNetPollsters(base.TestPollsterBase):
|
|||||||
def test_bandwidth(self):
|
def test_bandwidth(self):
|
||||||
self._check_get_samples(net.BandwidthBytesPollster,
|
self._check_get_samples(net.BandwidthBytesPollster,
|
||||||
'hardware.network.bandwidth.bytes',
|
'hardware.network.bandwidth.bytes',
|
||||||
1000, sample.TYPE_CUMULATIVE)
|
1000, sample.TYPE_GAUGE)
|
||||||
|
|
||||||
def test_incoming(self):
|
def test_incoming(self):
|
||||||
self._check_get_samples(net.IncomingBytesPollster,
|
self._check_get_samples(net.IncomingBytesPollster,
|
||||||
|
|||||||
Reference in New Issue
Block a user