The ceilometer.publisher.http Module

class ceilometer.publisher.http.HttpPublisher(conf, parsed_url)[source]

Bases: ceilometer.publisher.ConfigPublisherBase

Publish metering data to a http endpoint

This publisher pushes metering data to a specified http endpoint. The endpoint should be configured in ceilometer pipeline configuration file. If the timeout and/or max_retries are not specified, the default timeout and max_retries will be set to 5 and 2 respectively. Additional parameters are:

  • ssl can be enabled by setting verify_ssl
  • batching can be configured by batch
  • connection pool size configured using poolsize

To use this publisher for samples, add the following section to the /etc/ceilometer/pipeline.yaml file or simply add it to an existing pipeline:

- name: meter_file
  interval: 600
  counters:
      - "*"
  transformers:
  publishers:
      - http://host:80/path?timeout=1&max_retries=2&batch=False

In the event_pipeline.yaml file, you can use the publisher in one of the sinks like the following:

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