Este conteúdo não está disponível no idioma selecionado.
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
- Set RabbitMQ as the RPC back end:
openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rpc_backend rabbit
# openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rpc_backend rabbitCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the Telemetry service to connect to the RabbitMQ host:
openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_host RABBITMQ_HOST
# openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_host RABBITMQ_HOSTCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace RABBITMQ_HOST with the IP address or host name of the message broker. - Set the message broker port to
5672:openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_port 5672
# openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_port 5672Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
# openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_userid ceilometer # openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_password CEILOMETER_PASSCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replaceceilometerand CEILOMETER_PASS with the RabbitMQ user name and password created for the Telemetry service. - When RabbitMQ was launched, the
ceilometeruser 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 /
# openstack-config --set /etc/ceilometer/ceilometer.conf \ DEFAULT rabbit_virtual_host /Copy to Clipboard Copied! Toggle word wrap Toggle overflow