Installing Ceilometer
Ceilometer monitors and measures computing resources. Install Ceilometer on the controller and compute nodes. The operations for installing Ceilometer on the controller node are different from those on the compute node.
Installing and Configuring Ceilometer on the Controller Node
- Create Keystone resource objects.
openstack user create --domain default --password-prompt ceilometer openstack role add --project service --user ceilometer admin openstack service create --name ceilometer --description "Telemetry" metering
The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Install Ceilometer.
yum install openstack-ceilometer-notification openstack-ceilometer-central
- Modify the /etc/ceilometer/pipeline.yaml configuration file.
- Open the file.
vi /etc/ceilometer/pipeline.yaml
- Press i to enter the insert mode and modify the following content:
publishers: # set address of Gnocchi # + filter out Gnocchi-related activity meters (Swift driver) # + set default archive policy - gnocchi://?filter_project=service&archive_policy=low - Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/ceilometer/ceilometer.conf configuration file.
- Open the file.
vi /etc/ceilometer/ceilometer.conf
- Press i to enter the insert mode and modify the following content:
[DEFAULT] transport_url = rabbit://openstack:RABBIT_PASSWORD@controller [service_credentials] auth_type = password auth_url = http://controller:5000/v3 project_domain_id = default user_domain_id = default project_name = service username = ceilometer password = CEILOMETER_PASSWORD interface = internalURL region_name = RegionOne
Replace RABBIT_PASSWORD with the RabbitMQ password and replace CEILOMETER_PASSWORD with the password of the Ceilometer user. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Initialize the database.
ceilometer-upgrade
- Start the Ceilometer service.
systemctl enable openstack-ceilometer-notification.service openstack-ceilometer-central.service systemctl start openstack-ceilometer-notification.service openstack-ceilometer-central.service
Installing and Configuring Ceilometer on the Compute Node
- Install Ceilometer.
yum install openstack-ceilometer-compute yum install openstack-ceilometer-ipmi
- Modify the /etc/ceilometer/ceilometer.conf configuration file.
- Open the file.
vi /etc/ceilometer/ceilometer.conf
- Press i to enter the insert mode and modify the following content:
[DEFAULT] transport_url = rabbit://openstack:RABBIT_PASSWORD@controller [service_credentials] auth_url = http://controller:5000/v3 project_domain_id = default user_domain_id = default auth_type = password username = ceilometer project_name = service password = CEILOMETER_PASSWORD interface = internalURL region_name = RegionOne
Replace RABBIT_PASSWORD with the RabbitMQ password of OpenStack and replace CEILOMETER_PASSWORD with the user authentication password of Ceilometer. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/nova/nova.conf configuration file.
- Open the file.
vi /etc/nova/nova.conf
- Press i to enter the insert mode and modify the following content:
[DEFAULT] instance_usage_audit = True instance_usage_audit_period = hour [notifications] notify_on_state_change = vm_and_task_state [oslo_messaging_notifications] driver = messagingv2
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/sudoers file.
- Open the file.
vi /etc/sudoers
- Press i to enter the insert mode and modify the following content:
ceilometer ALL = (root) NOPASSWD: /usr/bin/ceilometer-rootwrap /etc/ceilometer/rootwrap.conf *
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/ceilometer/polling.yaml file.
- Open the file.
vi /etc/ceilometer/polling.yaml
- Press i to enter the insert mode and add the following content:
- name: ipmi interval: 300 meters: - hardware.ipmi.temperatureThe following figure shows the format:

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Start the agent service.
systemctl enable openstack-ceilometer-compute.service systemctl start openstack-ceilometer-compute.service systemctl enable openstack-ceilometer-ipmi.service systemctl start openstack-ceilometer-ipmi.service
- Restart the compute service.
systemctl restart openstack-nova-compute.service
Enabling Service Measurement for Cinder
You need to perform the operations in this section on the controller and compute nodes. Pay attention to the node scenarios during the operations. The environment must contain block storage devices.
- Modify the /etc/cinder/cinder.conf configuration file.
- Open the file.
vi /etc/cinder/cinder.conf
- Press i to enter the insert mode and add the following content under [oslo_messaging_notifications]:
[oslo_messaging_notifications] driver = messagingv2
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Restart the block storage service on the controller node.
systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service
Restart the block storage service on the compute node.systemctl restart openstack-cinder-volume.service
Enabling Service Measurement for Glance
You need to perform the operations in this section on the controller node.
- Modify the /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf configuration files.
- Open the file (for example /etc/glance/glance-api.conf).
vi /etc/glance/glance-api.conf
To open the /etc/glance/glance-registry.conf file, run the following command:
vi /etc/glance/glance-registry.conf
- Press i to enter the insert mode and add the following content:
[DEFAULT] transport_url = rabbit://openstack:RABBIT_PASSWORD@controller [oslo_messaging_notifications] driver = messagingv2
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file (for example /etc/glance/glance-api.conf).
- Restart the services.
systemctl restart openstack-glance-api.service openstack-glance-registry.service
Enabling Service Measurement for Neutron
You need to perform the operations in this section on the controller node.
- Modify the /etc/neutron/neutron.conf file.
- Open the file.
vi /etc/neutron/neutron.conf
- Press i to enter the insert mode and modify the following content:
[oslo_messaging_notifications] driver = messagingv2
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Restart the network service.
systemctl restart neutron-server.service