ceilometer.publisher.messaging
Module¶Publish a sample using the preferred RPC mechanism.
ceilometer.publisher.messaging.
DeliveryFailure
(message=None, cause=None)[source]¶Bases: exceptions.Exception
ceilometer.publisher.messaging.
MessagingPublisher
(conf, parsed_url)[source]¶Bases: ceilometer.publisher.ConfigPublisherBase
ceilometer.publisher.messaging.
NotifierPublisher
(conf, parsed_url, default_topic)[source]¶Bases: ceilometer.publisher.messaging.MessagingPublisher
Publish metering data from notifer publisher.
The ip address and port number of notifer can be configured in ceilometer pipeline configuration file.
User can customize the transport driver such as rabbit, kafka and so on. The Notifer uses sample method as default method to send notifications.
This publisher has transmit options such as queue, drop, and retry. These options are specified using policy field of URL parameter. When queue option could be selected, local queue length can be determined using max_queue_length field as well. When the transfer fails with retry option, try to resend the data as many times as specified in max_retry field. If max_retry is not specified, by default the number of retry is 100.
To enable this publisher, add the following section to the /etc/ceilometer/pipeline.yaml file or simply add it to an existing pipeline:
meter:
- name: meter_notifier
meters:
- "*"
sinks:
- notifier_sink
sinks:
- name: notifier_sink
transformers:
publishers:
- notifer://[notifier_ip]:[notifier_port]?topic=[topic]&
driver=driver&max_retry=100
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.