Ceilometer shows wrong statistics

asked 2017-06-14 06:50:14 -0500

amirdhaoui gravatar image

updated 2017-06-14 06:51:41 -0500

Hi,

I am using ceilometer python API to show some usage statistics. I want to get VCPU and memory usage statistics.

I wrote this python code

cclient = ceilometerclient.client.get_client(...)
cclient.statistics.list(meter_name="memory")

I got this output :

[<Statistics {u'count': 226, u'duration_start': u'2017-06-12T19:46:44.226000', u'min': 2048.0, u'max': 8192.0, u'duration_end': u'2017-06-14T11:01:02.345000', u'period': 0, u'groupby': None, u'period_end': u'2017-06-14T11:01:02.345000', u'duration': 141258.119, u'period_start': u'2017-06-12T18:34:13.621000', u'avg': 5999.008849557522, u'sum': 1355776.0, u'unit': u'MB'}>]

I run this command at the same time also : openstack usage list

and I got this

Project |servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+-------------+---------+--------------+-----------+---------------+
| admin   |       9 |    717825.95   |     350.5      |       7010.02 |

There is no correspondence between two outputs :

  • the period =0 !!!!!!!!!!
  • the RAM usage hours are different (717825.95!=1355776.0)

I appreciate any help thank you

edit retag flag offensive close merge delete