Configuration of Ceilometer fails

asked 2013-12-17 07:41:37 -0600

vladber gravatar image

updated 2013-12-20 16:37:39 -0600

smaffulli gravatar image

As reference can someone point me to the step-by-step ceilometer service configuration. Or examples of the ceilometer conf related files ?

I followed the official guide: http://docs.openstack.org/havana/install-guide/install/apt/content/ch_ceilometer.html but it works partly :

ceilometer meter-list gives this output

+---------------------+-------+----------+--------------------------------------+---------------------------------
-+----------------------------------+
| Name                | Type  | Unit     | Resource ID                          | User ID
 | Project ID                       |
+---------------------+-------+----------+--------------------------------------+---------------------------------
-+----------------------------------+
| disk.ephemeral.size | gauge | GB       | 0d13811b-0c85-426a-a234-9a5559e539d4 | 9fb55674020e463eab6ecb2cd6f79860
 | af54773bea5c49c395f9d45172d83e4a |

But in dashboard the ceilometer service doesn't show up as enabled .

Also if I add the lines below in nova.conf on compute node I get error like

2013-12-17 15:00:16.945 2629 ERROR nova.openstack.common.rpc.common [-] Failed to declare consumer for topic 'compute': 406: (PRECONDITION_FAILED - inequivalent arg 'x-ha-policy'for queue 'compute' in vhost '/': received none but current is the value 'all' of type 'longstr', (50, 10), None)

instance_usage_audit=True
instance_usage_audit_period=hour
notify_on_state_change=vm_and_task_state
notification_driver=nova.openstack.common.notifier.rpc_notifier
notification_driver=ceilometer.compute.nova_notifier

As a result I cannot see a statistics from VMs .

The /etc/ceilometer/ceilometer.conf looks like :

[DEFAULT]
rabbit_host=10.56.165.247
rabbit_port=5672
rabbit_userid=openstack_rabbit_user
rabbit_password=password
os_username=ceilometer
os_password=password
os_tenant_name=services
os_auth_url=http://10.56.165.247:5000/v2.0

[publisher_rpc]
metering_secret=10380e5c7499ac22f9e4

[ssl]
[database]
connection = mongodb://ceilometer:password@10.56.165.247:27017/ceilometer
[alarm]
[rpc_notifier2]
[api]
[service_credentials]
[dispatcher_file]
[keystone_authtoken]
auth_host = 10.56.165.247
auth_port = 35357
auth_protocol = http
admin_tenant_name = services
admin_user = ceilometer
admin_password = password
[collector]
[matchmaker_ring]
[matchmaker_redis]



# keystone endpoint-list | grep 8777
| b71f19346a6d46a8b504a4ea90826530 | regionOne |            http://10.56.165.247:8777/           |            http://10.56.165.247:8777/           |         http://10.56.165.247:8777/         | e70764d0c3ad4e8eb34a075dbc70c730 |

]# netstat -nap | grep 8777
tcp        0      0 0.0.0.0:8777            0.0.0.0:*               LISTEN      26470/python
edit retag flag offensive close merge delete