The ceilometer.publisher.zaqar Module

class ceilometer.publisher.zaqar.ZaqarPublisher(conf, parsed_url)[source]

Bases: ceilometer.publisher.ConfigPublisherBase

Publish metering data to a Zaqar queue.

The target queue name must be configured in the ceilometer pipeline configuration file. The TTL can also optionally be specified as a query argument:

meter:
    - name: meter_zaqar
    interval: 600
    counters:
        - "*"
    transformers:
    sinks:
        - zaqar_sink
sinks:
    - name: zaqar_sink
    transformers:
    publishers:
        - zaqar://?queue=meter_queue&ttl=1200

The credentials to access Zaqar must be set in the [zaqar] section in the configuration.

publish_events(events)[source]

Send an event message for publishing

Parameters:events – events from pipeline after transformation
publish_samples(samples)[source]

Send a metering message for publishing

Parameters:samples – Samples from pipeline after transformation

Project Source

This Page