The ceilometer.dispatcher.file Module

class ceilometer.dispatcher.file.FileDispatcher(*args, **kwargs)[source]

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

Dispatcher class for recording metering data to a file.

The dispatcher class which logs each meter and/or event into a file configured in ceilometer configuration file. An example configuration may look like the following:

[dispatcher_file] file_path = /tmp/meters

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

[DEFAULT] meter_dispatchers = file event_dispatchers = file

record_events(events)[source]
record_metering_data(data)[source]

Project Source

This Page