diff options
author | jizilian <jizilian@cn.ibm.com> | 2016-01-04 10:24:40 -0500 |
---|---|---|
committer | jizilian <jizilian@cn.ibm.com> | 2016-01-04 10:24:40 -0500 |
commit | 99e13d0a8397c463f7b54cb9cf9cb660a6689795 (patch) | |
tree | 121a955d9789b973a3969c6b0b1aef1a0abee7e0 /ceilometer/network | |
parent | 586a503cb7ca24ae979e481c560540119c663181 (diff) | |
download | ceilometer-99e13d0a8397c463f7b54cb9cf9cb660a6689795.tar.gz |
wrong accumulative value of "network.services.lb.incoming.bytes"
According to the wiki[1], the bytes_in in the LBaaS response should
be a total number. Ceilometer should not accumulate the data again.
[1]https://wiki.openstack.org/wiki/Neutron/LBaaS/API#List_Traffic_
Statistics_of_a_pool
Change-Id: I32ee4b180fc0461d1ce4e98202a6cc50b6bcc781
Closes-bug:1530793
Diffstat (limited to 'ceilometer/network')
-rw-r--r-- | ceilometer/network/services/lbaas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ceilometer/network/services/lbaas.py b/ceilometer/network/services/lbaas.py index 3acaed18..754e9f54 100644 --- a/ceilometer/network/services/lbaas.py +++ b/ceilometer/network/services/lbaas.py @@ -292,7 +292,7 @@ class LBBytesInPollster(_LBStatsPollster): return make_sample_from_pool( pool, name='network.services.lb.incoming.bytes', - type=sample.TYPE_CUMULATIVE, + type=sample.TYPE_GAUGE, unit='B', volume=data.bytes_in, ) @@ -306,7 +306,7 @@ class LBBytesOutPollster(_LBStatsPollster): return make_sample_from_pool( pool, name='network.services.lb.outgoing.bytes', - type=sample.TYPE_CUMULATIVE, + type=sample.TYPE_GAUGE, unit='B', volume=data.bytes_out, ) |