[Openstack] ceilometer statistics timeout

magicboiz at hotmail.com magicboiz at hotmail.com
Thu Jun 30 08:18:24 UTC 2016


Hi there

I'm facing a strange ceilometer-api behavior. While I can query 
ceilometer-api for "meter-list"/"sample-list" (or even openstack usage 
show) very fast, it looks like ceilometer cli (or api) struggles with 
"ceilometer statistics" gettting always a timeout

[user1 at ubuntu ~]$ ceilometer statistics -q 
"project=6294315f9df1491fa9345701d2642c96;timestamp>2016-06-20T14:30" -m 
vcpus --period 60
b'Gateway Timeout (HTTP 504)'

Would you happen to know why? Any idea/clue?

Thanks.
J

[user1 at ubuntu ~]$ time openstack usage show
Usage from 2016-06-02 to 2016-07-01 on project 
6294315f9df1491fa9345701d2642c96:
+---------------+-----------+
| Field         | Value     |
+---------------+-----------+
| CPU Hours     | 164.21    |
| Disk GB-Hours | 16420.51  |
| RAM MB-Hours  | 168146.07 |
| Servers       | 1         |
+---------------+-----------+
real    0m2.204s
user    0m1.490s
sys    0m0.113s




[user1 at ubuntu ~]$ time ceilometer meter-list
+---------------------------------+------------+-----------+-----------------------------------------------------------------------+----------------------------------+----------------------------------+
| Name                            | Type       | Unit      | Resource 
ID                                                           | User 
ID                          | Project ID                       |
+---------------------------------+------------+-----------+-----------------------------------------------------------------------+----------------------------------+----------------------------------+
| cpu                             | cumulative | ns        | 
5c305833-fbd2-44cb-b517-789641c2a5db | eb12445c73ae4093b7c7105ebe3f1216 
| 6294315f9df1491fa9345701d2642c96 |
| cpu.delta                       | delta      | ns        | 
5c305833-fbd2-44cb-b517-789641c2a5db | eb12445c73ae4093b7c7105ebe3f1216 
| 6294315f9df1491fa9345701d2642c96 |
.............
| vcpus                           | gauge      | vcpu      | 
5c305833-fbd2-44cb-b517-789641c2a5db | eb12445c73ae4093b7c7105ebe3f1216 
| 6294315f9df1491fa9345701d2642c96 |
+---------------------------------+------------+-----------+-----------------------------------------------------------------------+----------------------------------+----------------------------------+

real    0m2.088s
user    0m0.897s
sys    0m0.057s




[user1 at ubuntu ~]$ time ceilometer sample-list -q "timestamp>2016-06-1T00:00"
+--------------------------------------+-----------------------------------------------------------------------+---------------------------------+------------+------------------------+-----------+----------------------------+
| ID                                   | Resource 
ID                                                           | 
Name                            | Type       | Volume                 | 
Unit      | Timestamp                  |
+--------------------------------------+-----------------------------------------------------------------------+---------------------------------+------------+------------------------+-----------+----------------------------+
| e81ed112-3e99-11e6-b12c-52540086048d | 
6294315f9df1491fa9345701d2642c96 | storage.objects.containers      | 
gauge      | 0.0                    | container | 
2016-06-30T08:09:02.663000 |
......
| 9b50bb52-3e99-11e6-90d4-52540086048d | 
instance-000002d6-5c305833-fbd2-44cb-b517-789641c2a5db-tapdefa1d28-b5 | 
network.outgoing.packets.gb     | cumulative | 2.654269337654114e-07  | 
gb        | 2016-06-30T08:06:53.700000 |
+--------------------------------------+-----------------------------------------------------------------------+---------------------------------+------------+------------------------+-----------+----------------------------+

real    0m2.373s
user    0m0.977s
sys    0m0.073s



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160630/61930f2c/attachment.html>


More information about the Openstack mailing list