Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

12.8. Configure RabbitMQ Message Broker Settings for the Telemetry Service

RabbitMQ is the default (and recommended) message broker. The RabbitMQ messaging service is provided by the rabbitmq-server package. All steps in the following procedure must be performed on the system hosting the Telemetry service, while logged in as the root user.

Procedure 12.6. Configuring the Telemetry Service to Use the RabbitMQ Message Broker

  1. Set RabbitMQ as the RPC back end:
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rpc_backend rabbit
  2. Set the Telemetry service to connect to the RabbitMQ host:
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rabbit_host RABBITMQ_HOST
    Replace RABBITMQ_HOST with the IP address or host name of the message broker.
  3. Set the message broker port to 5672:
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rabbit_port 5672
  4. Set the RabbitMQ user name and password created for the Telemetry service when RabbitMQ was configured:
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rabbit_userid ceilometer
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rabbit_password CEILOMETER_PASS
    Replace ceilometer and CEILOMETER_PASS with the RabbitMQ user name and password created for the Telemetry service.
  5. When RabbitMQ was launched, the ceilometer user was granted read and write permissions to all resources: specifically, through the virtual host /. Configure the Telemetry service to connect to this virtual host:
    # openstack-config --set /etc/ceilometer/ceilometer.conf \
       DEFAULT rabbit_virtual_host /