12.7. Configure the Compute Node
The Telemetry service monitors each node by collecting usage data from the Compute agent (
openstack-ceilometer-compute) installed on that node. You can configure a node's Compute agent by replicating the /etc/ceilometer/ceilometer.conf from another host (as in, a host whose Telemetry components have already been configured).
You will also have to configure the Compute node itself to enable notifications. This is set in the Compute agent's configuration file, namely
/etc/nova/nova.conf:
Procedure 12.3. Enabling notifications on a Compute node
- Install python-ceilometer and python-ceilometerclient on the node:
#yum install python-ceilometer python-ceilometerclient - Enable auditing on the node:
#openstack-config --set /etc/nova/nova.conf \DEFAULT instance_usage_audit True - Configure the audit frequency:
#openstack-config --set /etc/nova/nova.conf \DEFAULT instance_usage_audit_period hour - Configure what type of state changes should trigger a notification:
#openstack-config --set /etc/nova/nova.conf \DEFAULT notify_on_state_change vm_and_task_state - Set the node to use the correct notification drivers:
#openstack-config --set /etc/nova/nova.conf \DEFAULT notification_driver nova.openstack.common.notifier.rpc_notifier#openstack-config --set /etc/nova/nova.conf \DEFAULT notification_driver ceilometer.compute.nova_notifier
Once the Compute node is configured for Telemetry, start/restart the Compute agent:
#service openstack-ceilometer-compute restart
Configure the agent to launch automatically at boot:
#chkconfig openstack-ceilometer-compute on
Finally, restart the
openstack-nova-compute service to apply all changes to /etc/nova/nova.conf:
#service openstack-nova-compute restart