How to use Grafana with Gnocchi?

asked 2018-03-31 07:27:45 -0500

M.Pav gravatar image

updated 2018-04-07 14:58:44 -0500

Hi, I have installed Gnocchi by manual, but I am still confused, how to use Grafana. Only few manuals online, but different approaches.

I have OpenStack Queens installed by DevStack script on my Ubuntu 16. So my idea is to use [1] in ~/devstack/local.conf

enable_service gnocchi-grafana

and install by ./stack.sh

and changed /etc/gnocchi/gnocchi.conf, /etc/ceilometer/ceilometer.conf and /etc/keystone/keystone.conf to: [2]

...
[cors]
allowed_origin = *
...

But i do not know, what is next. Is it enough? How to set https://"myname".grafana.net datasource to Gnocchi to work properly? I am using keystone, so I am not sure, if i should choose "Direct" or "Proxy" and how to set properties. Grafana manual is not accurate enough. [3]

I am getting 404 or Keystone failure: No response status code, is CORS correctly configured ?

[1] https://julien.danjou.info/openstack-gnocchi-grafana/ (https://julien.danjou.info/openstack-...)

[2] https://gnocchi.xyz/stable_4.2/grafana.html (https://gnocchi.xyz/stable_4.2/grafan...)

[3] https://grafana.com/plugins/gnocchixyz-gnocchi-datasource (https://grafana.com/plugins/gnocchixy...)

Or do i need some filters or pipelines settings? https://blog.sileht.net/configuring-cors-for-gnocchi-and-keystone.html (Like this)

edit retag flag offensive close merge delete

Comments

To access grafana you need to enter your IP with port 3000 (http: // your_IP: 3000). In my gitHub you have the steps for installing Devstack Pike https://github.com/pablobrunetti/Devstack-Pike-local.conf (GitHub) and acessing grafana.

pablobrunetti gravatar imagepablobrunetti ( 2018-04-04 15:25:56 -0500 )edit

Thanks for comment. I tried new installation by your guide. (btw - nice tutorial) However, Grafana now returns Keystone failure: (401 Unauthorized) The account is locked for user: 35b0022e29ee4e5588fca36d30e95afb.

M.Pav gravatar imageM.Pav ( 2018-04-05 10:48:45 -0500 )edit

Have you installed Devstack Pike or another version? Depending on the version installed, the graphfana data source settings are different.

pablobrunetti gravatar imagepablobrunetti ( 2018-04-07 11:21:23 -0500 )edit

I have installed Pike by your guide. I am now getting Keystone failure: (401 Unauthorized) The account is locked for user: 35b0022e29ee4e5588fca36d30e95afb.or this: Gnocchi error: No response status code, is CORS correctly configured ? (detail: [object Object])

M.Pav gravatar imageM.Pav ( 2018-04-07 14:55:50 -0500 )edit

My setting: http://www.imagehosting.cz/images/grafana.png (http://www.imagehosting.cz/images/gra...)

M.Pav gravatar imageM.Pav ( 2018-04-07 15:02:07 -0500 )edit