Where does gnocchi store the metric data in local system?

asked 2018-12-20 03:14:38 -0600

pm gravatar image

I went through my gnocchi conf file:

[DEFAULT] debug = True


url = mysql+pymysql://root:stackdb@

[storage] coordination_url = redis://localhost:6379 redis_url = redis://localhost:6379 driver = redis

[metricd] metric_processing_delay = 5

[api] auth_mode = keystone

I needed to understand where does the metric data generated from Ceilometer get stored in the local system.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2018-12-20 04:18:28 -0600

updated 2018-12-20 04:20:05 -0600

Gnocchi uses two databases: One for incoming measures, which it receives from Ceilometer when it runs in an OpenStack cloud, and one for aggregates. The [incoming] section in gnocchi.conf configures storage of incoming measures, and the [storage] section configures storage of aggregates.

According to the published config file, by default the incoming storage driver is identical to the aggregate storage driver:


# From gnocchi
# Storage driver to use (string value)
#driver = ${storage.driver}

The default [storage] driver is file, but you use redis. I have a Rocky Devstack, which also configures redis. I tried to understand the redis config file /etc/redis/redis.conf but am not sure which persistence method is actually configured. However, the default seems to be RDB, and there is a file /var/lib/redis/dump.rdb whose ever-changing timestamp proves that it is being used.

Most probably, then, your incoming measures and aggregates are stored in /var/lib/redis/dump.rdb.

edit flag offensive delete link more


I have installed Ceilometer using devstack. This is the default config file. It might be a case where devstack sets the storage driver to redis. But it is contradicting the official Ceilometer https://docs.openstack.org/ceilometer/queens/install/install-base-ubuntu.html#install-gnocchi (docs).

pm gravatar imagepm ( 2018-12-21 02:53:27 -0600 )edit

Configuration options exist so that people have a choice. The Ceilometer install tutorial uses a non-default Gnocchi installation. That’s not a contradiction. It’s just not the same as the default.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-21 03:14:50 -0600 )edit

answered 2018-12-20 04:07:22 -0600

yasin lachiny gravatar image

you do not have redis comment it

edit flag offensive delete link more


I have installed Ceilometer using Devstack. This is the default config file.

pm gravatar imagepm ( 2018-12-21 01:10:34 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-12-20 03:14:38 -0600

Seen: 378 times

Last updated: Dec 20 '18