The ceilometer.publisher.prometheus Module

The ceilometer.publisher.prometheus Module

class ceilometer.publisher.prometheus.PrometheusPublisher(conf, parsed_url)[source]

Bases: ceilometer.publisher.http.HttpPublisher

Publish metering data to Prometheus Pushgateway endpoint

This dispatcher inherits from all options of the http dispatcher.

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
  meters:
      - "*"
  publishers:
      - prometheus://mypushgateway/metrics/job/ceilometer
HEADERS = {'Content-type': 'plain/text'}
static publish_events(events)[source]
publish_samples(samples)[source]

Send a metering message for publishing

Parameters:samples – Samples from pipeline after transformation
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.