The ceilometer.dispatcher.file Module

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]
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.