Why can't I see a custom metric in Horizon?

asked 2014-09-11 10:50:56 -0500

gagarinq9 gravatar image

updated 2014-09-11 10:51:06 -0500

mpetason gravatar image

So, I added a custom metric to ceilometer with api V2 as documentation describes.

Get a token:

curl -i -X POST http://controller:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "test", "passwordCredentials": {"username": "admin", "password": "password"}}}'  ;

Take token:

mysql -e 'use keystone; select id from token;' | tail -n 1

Add custom metric with data:

curl -X POST -H 'X-Auth-Token: TOKEN' -H 'Content-Type: application/json'   -d '[{"counter_name": "test","user_id": "admin_user_id","resource_id": "Virtual_machine_ID","resource_metadata": {"display_name": "my_test","my_custom_metadata_1": "value1","my_custom_metadata_2": "value2"},"counter_unit": "%","counter_volume": 10.57762938230384,"project_id": "VM_tenant_ID","counter_type": "gauge"}]'  http://controller:8777/v2/meters/test

I can see anything about this metric via consol comands, comands like:

> ceilometer sample-list -m test

> ceilometer meter-list |grep test

> ceilometer statistics -m test

But can't see my new metric in dashboard, can anybody tell me why? And what's wrong?

edit retag flag offensive close merge delete

Comments

It seems nobody can't give me some advice :(

gagarinq9 gravatar imagegagarinq9 ( 2014-09-12 07:58:50 -0500 )edit

Somebody knows how to add the custom metric in ceilometer and make it visible in dashboard? For example using API?

I have try but have a fail. It is visible via different comands but not visible in dasboard. Anybody can tell me why? And how fix that problem?

gagarinq9 gravatar imagegagarinq9 ( 2014-09-15 10:25:43 -0500 )edit

I have the same problem did you find solutions to add custom metrics to ceilometer?

binou gravatar imagebinou ( 2015-05-07 08:37:29 -0500 )edit

No, I just switched to graphite+grafana

gagarinq9 gravatar imagegagarinq9 ( 2015-10-28 10:07:44 -0500 )edit

Hello, Even i have the same issue. Can we integrate any other 3PV gui with Ceilometer backend ?

aksubuceilo gravatar imageaksubuceilo ( 2017-02-23 22:40:16 -0500 )edit