error_message => faultcode: "Client", faultstring: Unknown argument: groupby

Asked by Ayoub Boulila on 2013-09-26

Hello, all

please help me i have a problem with ceilometer.
I'm traying to use queries in ceilometer and it works fine when i send simple queries but when i use groupby the API respond with an error message :

'error_message' => '{"debuginfo": null, "faultcode": "Client", "faultstring": "Unknown argument: \"groupby\""}'

and this is my query :

{
"q":

[{"field":"project_id","op":"eq","value":"1da63be688c94d4181951c7dd4bffe5d"},{"field":"resource_id","op":"eq","value":"d01524b1-84d4-4009-8a50-fef07d5caa90"}],

"period":600,
"groupby":["resource_id"]
}

so why the API is not recognizing groupby ?
Could some one help to provide suggestions for this issue? Thanks a lot.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ceilometer Edit question
Assignee:
No assignee Edit question
Last query:
2013-09-26
Last reply:
2013-09-26
Thomas Kr├╝ger (thkrueger) said : #1

At first: This platform is giving user support for Ubuntu Linux. We can not give support for ceilometer development here.
You should ask such question in the OpenStack community: http://www.openstack.org/community

Just a short note: not all methods support grouping, but you did not say which you are calling. So you should check the API docs if the parameter is supported.

Manfred Hampl (m-hampl) said : #2

When looking in the documentation, it seems to me that groupby has been introduced in API V2 only, maybe you are still running V1?

Ayoub Boulila (ayoubboulila) said : #3

I'm using ceilometer V2 and my request header is :

GET /v2/meters/memory/statistics HTTP/1.1
Host: 192.168.103.6:8777
Accept: */*
Content-Type: application/json
X-Auth-Token:deff6409fe514a1588ae10a146ac179e
Content-Length: 203

also the version of ceilometer is the Grizzly 2013.1.1

Can you help with this problem?

Provide an answer of your own, or ask Ayoub Boulila for more information if necessary.

To post a message you must log in.