Telemetry provides an API service that provides a collector and a range of disparate agents. This procedure details how to install the agent that runs on the compute node.
Install the Telemetry service on the compute node:
# apt-get install ceilometer-agent-compute
Edit the
/etc/nova/nova.conf
file and add the following lines to the[DEFAULT]
section:[DEFAULT] ... 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
Restart the Compute service:
# service nova-compute restart
You must set the secret key that you defined previously. The Telemetry service nodes share this key as a shared secret:
Edit the
/etc/ceilometer/ceilometer.conf
file and change these lines in the[publisher]
section. ReplaceCEILOMETER_TOKEN
with the ceilometer token that you created previously:[publisher] # Secret value for signing metering messages (string value) metering_secret =
CEILOMETER_TOKEN
Add the Identity service credentials:
Edit the
/etc/ceilometer/ceilometer.conf
file and change the[keystone_authtoken]
section:[keystone_authtoken] auth_host = controller auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = ceilometer admin_password =
CEILOMETER_PASS
Also set the
[service_credentials]
section:[service_credentials] os_auth_url = http://
controller
:5000/v2.0 os_username = ceilometer os_tenant_name = service os_password =CEILOMETER_PASS
Restart the service with its new settings:
# service ceilometer-agent-compute restart