Ask Your Question

How does Gnocchi map resources and its corresponding metrics?

asked 2015-03-24 02:08:08 -0600

spradeepv gravatar image

I am trying to understand how gnocchi works and solves the problem with ceilometer. I am not sure how gnocchi indexer maps the resources and its corresponding metric values.

I also tried to install gnocchi using devstack. Installation was successful and I could see gnocchi-api in the screen. When I check the database I couldn't see any metric being collected. How do I get gnocchi to collect metrics for a VM?

Here is the gnocchi.conf file that is used.

verbose = True

file_basepath = /opt/stack/data/gnocchi/
driver = file
coordination_url = file:///opt/stack/data/gnocchi/locks

signing_dir = /var/cache/gnocchi
cafile = /opt/stack/data/ca-bundle.pem
auth_uri =
project_domain_id = default
project_name = admin
user_domain_id = default
password = password
username = gnocchi
auth_url =
auth_plugin = password

url = mysql://root:password@
driver = sqlalchemy

Regards, Pradeep. S

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-07-19 21:39:14 -0600

zero gravatar image

Hello, I am doing the same thing these days. I am not sure either.

But when I look at the code I find the mapping maybe like this resource_id --> metric_id (metric table) --> directory(metric_id) --> measure_id+timestamp.

I try to check the 'metric' table in mysql. I find the 'id' field and 'resource_id' field are unread characters. I guess it caused by formatting by gnocchi.

I am also have many other questions. gnocchi-metric Is it doing the measure aggregate asynchronously. what is gnocchi-statsd doing? and how often ceilometer dispatch measures to gnocchi?

edit flag offensive delete link more

answered 2016-07-25 01:28:48 -0600

yprokule gravatar image

@spradeepv - Gnocchi doesn't collect data on its own. It's just a backend for storing data. To make it work with Ceilometer U have to configure gnocchi dispatcher in ceilometer.conf and set meter_dispatcher. Smth like:


This will make ceilometer to collect data and send it to Gnocchi.

@Cow - regarding statsd:

A network daemon that runs on the Node.js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends aggregates to one or more pluggable backend services (e.g., Graphite).

More info at -

edit flag offensive delete link more


Thanks for your answers, very useful.

zero gravatar imagezero ( 2016-08-05 09:59:21 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-24 02:08:08 -0600

Seen: 1,484 times

Last updated: Jul 25 '16