Re: [Openstack] How to query ceilometer to get nova-specific data
Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given here. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:Firs get the resource id number and then query using parameters in the curl command. This is what I already tested:Get the resource id from what you want to query ceilometer $ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources | python -mjson.tool And then query with: $curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool Remember that option q is to filter rules for the resources to be returned, and try to use python mjson.tool, just for having something legible in your terminal. Good luck :) Cláudio Marques claudio@onesource.pthttp://www.onesource.pt/ Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gave(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given here. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks
Re: [Openstack] How to query ceilometer to get nova-specific data
Ok - good, sometimes that trips folks up. I think most of the instance specific data, like CPU is accumulated by the ceilometer-agent-compute is this running properly on your compute node(s)? Anything interesting in the logs for that service on the compute node(s)? Brent On Thu, Jun 20, 2013 at 8:17 AM, Jobin Raju George jobin...@gmail.comwrote: Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack
Re: [Openstack] How to query ceilometer to get nova-specific data
Hi Try to see if your daemons (api, collector, central agent, compute agent) are working without having issues. (see logs)!Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques claudio@onesource.pthttp://www.onesource.pt/ Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.com wrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards,Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.com wrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.pt wrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:Firs get the resource id number and then query using parameters in the curl command. This is what I already tested:Get the resource id from what you want to query ceilometer $ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources | python -mjson.tool And then query with: $curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool Remember that option q is to filter rules for the resources to be returned, and try to use python mjson.tool, just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gave(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given here. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack
Re: [Openstack] How to query ceilometer to get nova-specific data
Nothing special since I restarted my server this morning. Yesterday I had an ERROR message which said it had a virDomainLookupByName error which must not be NULL. I restarted the machine after which there have not been any errors, thankfully. I raised a question regarding this on ask.openstack.orghttps://ask.openstack.org/question/2345/libvirt-error-in-ceilometer-agent-compute-logs/, but have not got any response as such. Can anything else be responsible? And is using admin user for querying ceilometer fine? On Thu, Jun 20, 2013 at 6:09 PM, Brent Roskos brent.ros...@solinea.comwrote: Ok - good, sometimes that trips folks up. I think most of the instance specific data, like CPU is accumulated by the ceilometer-agent-compute is this running properly on your compute node(s)? Anything interesting in the logs for that service on the compute node(s)? Brent On Thu, Jun 20, 2013 at 8:17 AM, Jobin Raju George jobin...@gmail.comwrote: Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https
Re: [Openstack] How to query ceilometer to get nova-specific data
Have you have single node, devstack or multi-node openstack architecture ? claudio@onesource.pthttp://www.onesource.pt/Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.pt wrote: Hi Try to see if your daemons (api, collector, central agent, compute agent) are working without having issues. (see logs)!Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.com wrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards,Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.com wrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.pt wrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:Firs get the resource id number and then query using parameters in the curl command. This is what I already tested:Get the resource id from what you want to query ceilometer $ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources | python -mjson.tool And then query with: $curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool Remember that option q is to filter rules for the resources to be returned, and try to use python mjson.tool, just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gave(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given here. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe
Re: [Openstack] How to query ceilometer to get nova-specific data
It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.ptwrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data
Re: [Openstack] How to query ceilometer to get nova-specific data
Okay. You don't have your rabbit configuration on your ceilometer.conf file. rabbit_host=localhostrabbit_port=5672rabbit_userid=guestrabbit_password=guestrabbit_retry_backoff=2rabbit_max_retries=0rabbit_use_ssl=False See if this helps claudio@onesource.pthttp://www.onesource.pt/ Date: Thu, 20 Jun 2013 18:53:34 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.pt wrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.pt wrote: Hi Try to see if your daemons (api, collector, central agent, compute agent) are working without having issues. (see logs)!Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.com wrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards,Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.com wrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.pt wrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:Firs get the resource id number and then query using parameters in the curl command. This is what I already tested:Get the resource id from what you want to query ceilometer $ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources | python -mjson.tool And then query with: $curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool Remember that option q is to filter rules for the resources to be returned, and try to use python mjson.tool, just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gave(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given here. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its
Re: [Openstack] How to query ceilometer to get nova-specific data
The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Claudio! That was a nice catch! But I don't know why I ceilometer continues to behave the same way. I have posted the query and the output for your reference here http://pastebin.ubuntu.com/5783805/. I am indebted for your patience! :-) On Thu, Jun 20, 2013 at 7:06 PM, claudio marques clau...@onesource.ptwrote: Okay. You don't have your rabbit configuration on your ceilometer.conf file. rabbit_host=localhost rabbit_port=5672 rabbit_userid=guest rabbit_password=guest rabbit_retry_backoff=2 rabbit_max_retries=0 rabbit_use_ssl=False See if this helps clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:53:34 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.ptwrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about
Re: [Openstack] How to query ceilometer to get nova-specific data
Does this query returns anything? curl -X GET -H 'X-Auth-Token:token' http://localhost:8777/v2/meters ===Just a comment:I notice that you have something wrong to. kvm requires that your CPU supports hardware-assisted virtualization (HVM) such as Intel VT-x or AMD-V. Because you are running openstack in a virtual machine, you should have used nova-compute-qemu package instead off nova-compute-kvm in order to install the compute services correctly. (This package provides software-based virtualization). Probably on your installation you have installed kvm package instead. (don't know if it help's on your current problem in ceilometer). You probably should change libvirt_type=kvm to qemu on ceilolemeter.confCheers claudio@onesource.pthttp://www.onesource.pt/ Date: Thu, 20 Jun 2013 19:53:31 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! That was a nice catch! But I don't know why I ceilometer continues to behave the same way. I have posted the query and the output for your reference here. I am indebted for your patience! :-) On Thu, Jun 20, 2013 at 7:06 PM, claudio marques clau...@onesource.pt wrote: Okay. You don't have your rabbit configuration on your ceilometer.conf file. rabbit_host=localhostrabbit_port=5672rabbit_userid=guestrabbit_password=guest rabbit_retry_backoff=2rabbit_max_retries=0rabbit_use_ssl=False See if this helps clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 18:53:34 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.pt wrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.pt wrote: Hi Try to see if your daemons (api, collector, central agent, compute agent) are working without having issues. (see logs)!Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.com wrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards,Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.com wrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.pt wrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is:Firs get the resource id number and then query using parameters in the curl command. This is what I already tested:Get the resource id from what you want to query ceilometer $ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources | python -mjson.tool And then query with: $curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool Remember that option q is to filter rules for the resources to be returned, and try to use python mjson.tool, just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http
Re: [Openstack] How to query ceilometer to get nova-specific data
Extremely sorry for the delayed response, Claudio, but seems like that is an issue for me. I have uploaded the response I get by executing *curl -X GET -H 'X-Auth-Token:token' http://localhost:8777/v2/meters * over here http://pastebin.ubuntu.com/5785821/,please have a look. I have kvm enabled even though my hardware does not support it and I am running OpenStack on a virtual machine and that virtual machine is not running on kvm or qemu or xen. But I am not sure whether ceilometer is supported for these hypervisors. I have raised a question on http://ask.openstack.org ask.openstack.orghttps://ask.openstack.org/question/2404/does-ceilometer-report-all-statistics-on-hypervisors-other-than-kvm-xen-qemu-lxc-uml/regarding this, lets see what happens. Tons of thanks for your oceanic patience and invaluable help. * http://localhost:8777/v2/meters* On Thu, Jun 20, 2013 at 8:48 PM, claudio marques clau...@onesource.ptwrote: Does this query returns anything? *curl -X GET -H 'X-Auth-Token:token' http://localhost:8777/v2/meters* * * === Just a comment: I notice that you have something wrong to. kvm requires that your CPU supports hardware-assisted virtualization (HVM) such as Intel VT-x or AMD-V. Because you are running openstack in a virtual machine, you should have used *nova-compute-qemu* package instead off *nova-compute-kvm* in order to install the compute services correctly. (This package provides software-based virtualization). Probably on your installation you have installed kvm package instead. (don't know if it help's on your current problem in ceilometer). You probably should change* libvirt_type=kvm *to *qemu* on ceilolemeter.conf Cheers clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 19:53:31 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! That was a nice catch! But I don't know why I ceilometer continues to behave the same way. I have posted the query and the output for your reference here http://pastebin.ubuntu.com/5783805/. I am indebted for your patience! :-) On Thu, Jun 20, 2013 at 7:06 PM, claudio marques clau...@onesource.ptwrote: Okay. You don't have your rabbit configuration on your ceilometer.conf file. rabbit_host=localhost rabbit_port=5672 rabbit_userid=guest rabbit_password=guest rabbit_retry_backoff=2 rabbit_max_retries=0 rabbit_use_ssl=False See if this helps clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:53:34 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.ptwrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role