[openstack-dev] [gnocchi][rating] Issues regarding gnocchi support in CloudKitty
Stéphane Albert
sheeprine-ml at nullplace.com
Thu Nov 26 15:20:01 UTC 2015
Hi Julien,
You'll find attached to this mail two dump files.
gnocchi_resource.txt is an example of resource requests and responses
from gnocchi.
gnocchi_measure.txt an example of a timeframe request.
-------------- next part --------------
Metric (vcpus) measure
======================
Data stored by ceilometer with default configuration (devstack).
GET http://10.8.8.168:8041/v1/metric/9c26bbea-6041-4067-9384-f6aa9b4ce120/measures
? 200 application/json 1.71kB 295ms
Host: 10.8.8.168:8041
Connection: keep-alive
X-Auth-Token: 90cf2d940e464ae0aef733d5f124aa43
Accept-Encoding: gzip, deflate
Accept: application/json, */*
User-Agent: keystoneauth1
No request content
Date: Thu, 26 Nov 2015 14:58:59 GMT
Server: Apache/2.4.7 (Ubuntu)
content-length: 1752
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON
[
[
"2015-11-23T00:00:00+00:00",
86400.0,
1.0
],
[
"2015-11-24T00:00:00+00:00",
86400.0,
1.0
],
[
"2015-11-25T00:00:00+00:00",
86400.0,
1.0
],
[
"2015-11-26T00:00:00+00:00",
86400.0,
1.0
],
[
"2015-11-25T15:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T16:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T17:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T18:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T19:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T20:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T21:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T22:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-25T23:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T00:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T01:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T02:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T03:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T04:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T05:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T06:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T07:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T08:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T09:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T10:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T11:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T12:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T13:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T14:00:00+00:00",
3600.0,
1.0
],
[
"2015-11-26T03:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T04:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T05:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T06:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T07:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T08:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T09:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T10:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T11:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T12:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T13:00:00+00:00",
300.0,
1.0
],
[
"2015-11-26T14:00:00+00:00",
300.0,
1.0
]
]
Request for a 1h timeframe
==========================
GET http://10.8.8.168:8041/v1/metric/9c26bbea-6041-4067-9384-f6aa9b4ce120/measures?start=2015-11-23T10%3A00%3A0.0%2B00%3A00&stop=2015-11-23T11%3A00%3A0.0%2B00%3A00&aggregation=max
? 200 application/json 2B 64ms
Host: 10.8.8.168:8041
Connection: keep-alive
X-Auth-Token: 948f7cf696d94c41908e819237112876
Accept-Encoding: gzip, deflate
Accept: application/json, */*
User-Agent: python-keystoneclient
No request content
Date: Thu, 26 Nov 2015 14:17:39 GMT
Server: Apache/2.4.7 (Ubuntu)
content-length: 2
Keep-Alive: timeout=5, max=86
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON [m:Auto]
[]
We don't get any data, but there is data with a bigger granularity. We don't
have a way to know that but request the archive policy and parse it.
-------------- next part --------------
Resource data
=============
Duplicated resource informations from ceilometer, only revision timestamps
changing.
GET http://10.8.8.168:8041/v1/resource/instance/90f72766-f156-49a6-9138-4a1dc8de650e/history
? 200 application/json 951.4kB 2.19s
Host: 10.8.8.168:8041
Connection: keep-alive
X-Auth-Token: 948f7cf696d94c41908e819237112876
Accept-Encoding: gzip, deflate
Accept: application/json, */*
User-Agent: python-keystoneclient
No request content
Date: Thu, 26 Nov 2015 14:17:36 GMT
Server: Apache/2.4.7 (Ubuntu)
content-length: 974233
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
[
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"display_name": "test1",
"ended_at": null,
"flavor_id": "dd5c611e-ff6d-47d5-a8ed-d7d51741cfaa",
"host": "api.devstack",
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"image_ref": "http://172.16.0.117:9292/images/255b6436-db9d-4f3e-b3ee-33652c18701a",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": "2015-11-23T10:33:26.731266+00:00",
"revision_start": "2015-11-23T10:33:26.388125+00:00",
"server_group": null,
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
},
[...]
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"display_name": "test1",
"ended_at": null,
"flavor_id": "dd5c611e-ff6d-47d5-a8ed-d7d51741cfaa",
"host": "8009b27e2e8619dc1abf80ace26370400a5258546c189a4844d770c9",
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"image_ref": "http://172.16.0.117:8774/eee4b471f5d84a9192004623eb9e13a3/images/255b6436-db9d-4f3e-b3ee-33652c18701a",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": "2015-11-23T17:01:33.086675+00:00",
"revision_start": "2015-11-23T17:01:33.081717+00:00",
"server_group": null,
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
},
[...]
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"display_name": "test1",
"ended_at": null,
"flavor_id": "dd5c611e-ff6d-47d5-a8ed-d7d51741cfaa",
"host": "8009b27e2e8619dc1abf80ace26370400a5258546c189a4844d770c9",
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"image_ref": "http://172.16.0.117:8774/eee4b471f5d84a9192004623eb9e13a3/images/255b6436-db9d-4f3e-b3ee-33652c18701a",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": null,
"revision_start": "2015-11-26T14:01:32.960768+00:00",
"server_group": null,
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
}
]
Search for active instances during a timeframe
==============================================
POST http://10.8.8.168:8041/v1/search/resource/instance
? 200 application/json 1.97kB 479s
host: 10.8.8.168
Content-Length: 259
Accept-Encoding: gzip, deflate
Accept: application/json, */*
X-Auth-Token: 948f7cf696d94c41908e819237112876
Connection: keep-alive
User-Agent: python-keystoneclient
Content-Type: application/json
JSON [m:Auto]
{
"and": [
{
"or": [
{
"=": {
"ended_at": null
}
},
{
">=": {
"ended_at": "2015-11-23T10:33:26.388112+00:00"
}
}
]
},
{
"or": [
{
"=": {
"ended_at": null
}
},
{
"<=": {
"ended_at": "2015-11-23T17:33:26.388112+00:00"
}
}
]
},
{
"<=": {
"started_at": "2015-11-23T17:33:26.388112+00:00"
}
}
]
}
Date: Thu, 26 Nov 2015 14:25:38 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 2016
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON [m:Auto]
[
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"display_name": "test1",
"ended_at": null,
"flavor_id": "dd5c611e-ff6d-47d5-a8ed-d7d51741cfaa",
"host": "8009b27e2e8619dc1abf80ace26370400a5258546c189a4844d770c9",
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"image_ref": "http://172.16.0.117:8774/eee4b471f5d84a9192004623eb9e13a3/images/255b6436-db9d-4f3e-b3ee-33652c18701a",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": null,
"revision_start": "2015-11-26T14:01:32.960768+00:00",
"server_group": null,
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
}
]
Here the revision is outside of the requested timeframe.
Same request with a filter on the revision
==========================================
POST http://10.8.8.168:8041/v1/search/resource/instance
? 200 application/json 2B 173s
host: 10.8.8.168
Content-Length: 323
Accept-Encoding: gzip, deflate
Accept: application/json, */*
X-Auth-Token: 948f7cf696d94c41908e819237112876
Connection: keep-alive
User-Agent: python-keystoneclient
Content-Type: application/json
JSON [m:Auto]
{
"and": [
{
"or": [
{
"=": {
"ended_at": null
}
},
{
">=": {
"ended_at": "2015-11-23T10:33:26.388112+00:00"
}
}
]
},
{
"or": [
{
"=": {
"ended_at": null
}
},
{
"<=": {
"ended_at": "2015-11-23T17:33:26.388112+00:00"
}
}
]
},
{
"<=": {
"started_at": "2015-11-23T17:33:26.388112+00:00"
}
},
{
"<=": {
"revision_start": "2015-11-23T17:33:26.388112+00:00"
}
}
]
}
Date: Thu, 26 Nov 2015 14:20:32 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 2
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON [m:Auto]
[]
Empty response because the filter is not matching with the latest resource
revision.
Workaround
==========
Search for every resource of type 'instances' active during the timeframe. The
generic request is just to reduce the amount of data transfered as its useless.
POST http://10.8.8.168:8041/v1/search/resource/generic
? 200 application/json 1.69kB 61ms
Host: 10.8.8.168:8041
Content-Length: 288
Accept-Encoding: gzip, deflate
Accept: application/json, */*
X-Auth-Token: 948f7cf696d94c41908e819237112876
Connection: keep-alive
User-Agent: python-keystoneclient
Content-Type: application/json
JSON [m:Auto]
{
"and": [
{
"or": [
{
"=": {
"ended_at": null
}
},
{
">=": {
"ended_at": "2015-11-23T10:33:26.388112+00:00"
}
}
]
},
{
"or": [
{
"=": {
"ended_at": null
}
},
{
"<=": {
"ended_at": "2015-11-23T17:33:26.388112+00:00"
}
}
]
},
{
"<=": {
"started_at": "2015-11-23T17:33:26.388112+00:00"
}
},
{
"=": {
"type": "instance"
}
}
]
}
Date: Thu, 26 Nov 2015 14:17:39 GMT
Server: Apache/2.4.7 (Ubuntu)
content-length: 1730
Keep-Alive: timeout=5, max=88
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON [m:Auto]
[
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"ended_at": null,
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": null,
"revision_start": "2015-11-26T14:01:32.960768+00:00",
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
}
]
Request the correct revision from the resource_id we found before.
POST http://10.8.8.168:8041/v1/search/resource/instance?history=true&limit=1&sort=revision_start%3Adesc
? 200 application/json 2kB 82ms
Host: 10.8.8.168:8041
Content-Length: 378
Accept-Encoding: gzip, deflate
Accept: application/json, */*
X-Auth-Token: 948f7cf696d94c41908e819237112876
Connection: keep-alive
User-Agent: python-keystoneclient
Content-Type: application/json
JSON [m:Auto]
{
"and": [
{
"or": [
{
"=": {
"ended_at": null
}
},
{
">=": {
"ended_at": "2015-11-23T10:33:26.388112+00:00"
}
}
]
},
{
"or": [
{
"=": {
"ended_at": null
}
},
{
"<=": {
"ended_at": "2015-11-23T17:33:26.388112+00:00"
}
}
]
},
{
"<=": {
"started_at": "2015-11-23T17:33:26.388112+00:00"
}
},
{
"<=": {
"revision_start": "2015-11-23T17:33:26.388112+00:00"
}
},
{
"=": {
"id": "90f72766-f156-49a6-9138-4a1dc8de650e"
}
}
]
}
Date: Thu, 26 Nov 2015 14:17:39 GMT
Server: Apache/2.4.7 (Ubuntu)
content-length: 2046
Keep-Alive: timeout=5, max=87
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8
JSON [m:Auto]
[
{
"created_by_project_id": "eee4b471-f5d8-4a91-9200-4623eb9e13a3",
"created_by_user_id": "436bc303-a384-4217-9d11-11de72a71180",
"display_name": "test1",
"ended_at": null,
"flavor_id": "dd5c611e-ff6d-47d5-a8ed-d7d51741cfaa",
"host": "8009b27e2e8619dc1abf80ace26370400a5258546c189a4844d770c9",
"id": "90f72766-f156-49a6-9138-4a1dc8de650e",
"image_ref": "http://172.16.0.117:8774/eee4b471f5d84a9192004623eb9e13a3/images/255b6436-db9d-4f3e-b3ee-33652c18701a",
"metrics": {
"cpu": "48f58168-a51e-4858-834e-e5e966aaa919",
"cpu_util": "c044978b-7ed5-444a-be77-471d92ebebce",
"disk.allocation": "252a604a-0081-4f24-aa3b-082de145f381",
"disk.capacity": "d2ba75d6-8cf6-4e77-b84d-4bac1fca4978",
"disk.ephemeral.size": "64a8ab16-370c-4b69-988c-05bbf0fbe9cf",
"disk.iops": "9c548681-b051-47b7-95ee-a7b7a4fff871",
"disk.latency": "30900917-cef9-4477-952e-2609cacca012",
"disk.read.bytes": "467125ec-a218-4b36-89a4-2cf1a358b19f",
"disk.read.bytes.rate": "57b65590-499b-481c-859f-74b8919d8555",
"disk.read.requests": "0b5eb074-2c31-4acf-a7f4-7aa702ccdcb9",
"disk.read.requests.rate": "cdf9bc5c-a155-4c8e-888f-194f95901a17",
"disk.root.size": "3417419a-b4cf-4419-b2b6-5127c0d2525d",
"disk.usage": "ff8f1968-bb19-4c7f-8cbe-02187547ba10",
"disk.write.bytes": "3761ae1b-0a43-4564-9387-359a7758ca20",
"disk.write.bytes.rate": "ef0ecb9d-a10a-486f-a093-4fcc9cf536a0",
"disk.write.requests": "cb5dd290-9bc3-48fa-b111-b836223077e7",
"disk.write.requests.rate": "9401b88c-9271-4640-9ec4-b1acd77d5223",
"instance": "bdcfddd0-2263-40c4-875c-3a4849cadb5a",
"memory": "86abc62a-2b2f-40b0-aef1-6625a084bc4d",
"memory.resident": "e9016a4b-ac26-4ddf-8e76-ae77de2e0c60",
"memory.usage": "0c40d288-3e8a-44b2-b352-f1aa47e8bb70",
"vcpus": "9c26bbea-6041-4067-9384-f6aa9b4ce120"
},
"project_id": "8af0780e-aab5-4bfa-96b7-3f068ca3ad51",
"revision_end": "2015-11-23T17:01:33.076844+00:00",
"revision_start": "2015-11-23T17:01:33.102993+00:00",
"server_group": null,
"started_at": "2015-11-23T10:33:26.388112+00:00",
"type": "instance",
"user_id": "fc958f6c-8bc7-47af-9139-58f396723f39"
}
]
We've got the correct data.
More information about the OpenStack-dev
mailing list