Ask Your Question
1

How does Gnocchi map resources and its corresponding metrics?

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

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.

[DEFAULT]
verbose = True

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

[keystone_authtoken]
signing_dir = /var/cache/gnocchi
cafile = /opt/stack/data/ca-bundle.pem
auth_uri = http://172.26.28.226:5000
project_domain_id = default
project_name = admin
user_domain_id = default
password = password
username = gnocchi
auth_url = http://172.26.28.226:35357
auth_plugin = password

[indexer]
url = mysql://root:password@127.0.0.1/gnocchi?charset=utf8
driver = sqlalchemy

Regards, Pradeep. S

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

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
0

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

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:

meter_dispatcher=gnocchi

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 - https://github.com/etsy/statsd/

edit flag offensive delete link more

Comments

Thanks for your answers, very useful.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,346 times

Last updated: Jul 25 '16