How to check if ceilometer is collecting data [closed]
Ceilometer returns an empty list specially when nova-specific queries are given as input, even though the response is a "200 OK". For example:
For the input:
curl -X GET -H 'X-Auth-Token:<my_token_comes_here>' "http://localhost:8777/v2/meters/instance?q.field=metadata.event_type&q.value=compute.instance.exists"
The Output is:
[]
How do I check if ceilometer is working fine and nothing is wrong with any of the components: ceilometer-api, ceilometer-agent-compute, ceilometer-agent-central and ceilometer-collector, even though all of them are running in background.
I queried the mongoDB database of ceilometer, whose size is around 203 MB, to see that it has created a database named ceilometer which has 5 collections: meter, project, resource, system.indexes and user. The meter collection has some records in it but they do not seem to store data about the compute resources like RAM and CPU utilization. Where would I get those or how do I verify that ceilometer is at least collecting these data?
Have a look at the log files. The log file of the compute agent should show you the pollers sending their meters every 10mins (the default), and the collector should show that it has received them.
Currently, I don't have access to the exact environment I want the meters from, I'll let you know the details as soon as I do.
Have you tried to use the complete URI parameters schema when you use the REST API? Something like "http://localhost:8777/v2/meters/instance?q.field=metadata.event_type&q.op=yourchosenoperator&q.value=compute.instance.exists"...
Marking question closed, as requested information hasn't been provided in nearly 9 months, so we assume it's abandoned.