Ask Your Question
0

Where does gnocchi store the metric data in local system?

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

pm gravatar image

I went through my gnocchi conf file:

[DEFAULT] debug = True

[indexer]

url = mysql+pymysql://root:stackdb@127.0.0.1/gnocchi?charset=utf8

[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
1

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

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

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:

[incoming]

#
# 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

Comments

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 -0500 )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 -0500 )edit
0

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

novainfinite gravatar image

you do not have redis comment it

edit flag offensive delete link more

Comments

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

pm gravatar imagepm ( 2018-12-21 01:10:34 -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: 2018-12-20 03:14:38 -0500

Seen: 83 times

Last updated: Dec 20 '18