Install the Compute agent for TelemetryTelemetry is composed of an API service, a collector and a range
of disparate agents. This section explains how to install and configure
the agent that runs on the compute node.To configure prerequisitesInstall the package:#apt-get install ceilometer-agent-compute#yum install openstack-ceilometer-compute python-ceilometerclient python-pecan#zypper install openstack-ceilometer-agent-computeEdit 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[DEFAULT]
...
notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifierThe option is a multi
valued option, which openstack-config
cannot set properly. See .
Restart the Compute service:#service openstack-nova-compute restart#service nova-compute restartTo configure the Compute agent for TelemetryEdit the /etc/ceilometer/ceilometer.conf
file and complete the following actions:In the [publisher] section, set the
secret key for Telemetry service nodes:[publisher]
# Secret value for signing metering messages (string value)
metering_secret = CEILOMETER_TOKENReplace CEILOMETER_TOKEN with
the ceilometer token that you created previously.In the [DEFAULT] section, configure
RabbitMQ broker access:[DEFAULT]
rabbit_host = controller
rabbit_password = RABBIT_PASSReplace RABBIT_PASS with the password
you chose for the guest account in RabbitMQ.In the [keystone_authtoken] section,
configure Identity service access:[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = ceilometer
admin_password = CEILOMETER_PASSReplace CEILOMETER_PASS with the
password you chose for the Telemetry module database.Comment out the auth_host,
auth_port, and auth_protocol
keys, since they are replaced by the identity_uri
and auth_uri keys.In the [service_credentials] section,
configure service credentials:[service_credentials]
os_auth_url = http://controller:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = CEILOMETER_PASS
os_endpoint_type = internalURLReplace CEILOMETER_PASS with the password you chose for the
ceilometer user in the Identity service.In the [DEFAULT] section, configure the
log directory:[DEFAULT]
log_dir = /var/log/ceilometerTo finish installationRestart the service with its new settings:#service ceilometer-agent-compute restartStart the service and configure it to start when the
system boots:#service openstack-ceilometer-agent-compute start#chkconfig openstack-ceilometer-agent-compute on#service openstack-ceilometer-compute start#chkconfig openstack-ceilometer-compute on