[openstack-dev] [ceilometer, gnocchi]How to use gnocchi in OpenStack Liberty

gordon chung gord at live.ca
Fri Feb 19 17:05:11 UTC 2016



On 19/02/2016 3:09 AM, photodh at 126.com wrote:
> I install OpenStack Liberty follow the instruction of "Installation
> Guide for Red Hat Enterprise Linux 7 and CentOS 7”. Then, I want to use
> Gnocchi instead of MongoDB in ceilometer. I read the doc of gnocchi in
> http://gnocchi.xyz . But in this doc, It only install gnocchi using
> devstack.
>
> I want to know after I install Openstack Liberty follow the instruction
> of “Installation Guide for Red Had Enterprise Linux 7 and CentOS 7”, how
> can i use gnocchi instead of MongoDB in ceilometer.
>

to start, i'd probably try using gnocchi2.0 to avoid/minimise any migration.

i'm not familiar with the current state of packages so it's something to 
consider. gnocchi is also accessible via pypi.

one possible way would be use create a test environment and install with 
devstack. you can see the user roles required, and a few other config 
settings

if you understand bash, you can look at how it's setup in devstack[1]. 
if you run into issues you can always post them.

from ceilometer pov, you should:
- ensure gnocchi_archive_policy_map.yaml and gnocchi_resources.yaml 
config files are place alongside ceilometer.conf.
- set dispatcher config option to gnocchi in ceilometer.conf
- set [dispatcher_gnocchi]/url = gnocchi url
- set [dispatcher_gnocchi]/archive_policy = <to whatever archive policy 
you create in gnocchi>
- disable store_events (in liberty)

NOTE: you might experience slow write performance from 
ceilometer->gnocchi in Liberty as we started to address that issue in 
Mitaka.

[1] https://github.com/openstack/gnocchi/blob/master/devstack/plugin.sh

cheers,

-- 
gord



More information about the OpenStack-dev mailing list