The ceilometer.dispatcher.http Module

class ceilometer.dispatcher.http.HttpDispatcher(*args, **kwargs)[source]

Bases: ceilometer.dispatcher.MeterDispatcherBase, ceilometer.dispatcher.EventDispatcherBase

Dispatcher class for posting metering/event data into a http target.

To enable this dispatcher, the following option needs to be present in ceilometer.conf file:

[DEFAULT]
meter_dispatchers = http
event_dispatchers = http

Dispatcher specific options can be added as follows:

[dispatcher_http]
target = www.example.com
event_target = www.example.com
timeout = 2
# No SSL verification
#verify_ssl = False
# SSL verification with system-installed CAs
verify_ssl = True
# SSL verification with specific CA or directory of certs
#verify_ssl = /path/to/ca_certificate.crt

Instead of publishing events and meters as JSON objects in individual HTTP requests, they can be batched up and published as JSON arrays of objects:

[dispatcher_http]
batch_mode = True
post_event(event)[source]
post_individual_events(events)[source]
post_individual_meters(meters)[source]
post_meter(meter)[source]
record_events(events)[source]
record_metering_data(data)[source]

Project Source

This Page