The ceilometer.dispatcher.gnocchi Module

class ceilometer.dispatcher.gnocchi.GnocchiDispatcher(conf)[source]

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

Dispatcher class for recording metering data into database.

The dispatcher class records each meter into the gnocchi service configured in ceilometer configuration file. An example configuration may look like the following:

[dispatcher_gnocchi] url = http://localhost:8041 archive_policy = low

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

[DEFAULT] meter_dispatchers = gnocchi event_dispatchers = gnocchi

batch_measures(measures, resource_infos, stats)[source]
record_events(events)[source]
record_metering_data(data)[source]
class ceilometer.dispatcher.gnocchi.LockedDefaultDict(*args, **kwargs)[source]

Bases: collections.defaultdict

defaultdict with lock to handle threading

Dictionary only deletes if nothing is accessing dict and nothing is holding lock to be deleted. If both cases are not true, it will skip delete.

pop(key, *args)[source]
class ceilometer.dispatcher.gnocchi.ResourcesDefinition(definition_cfg, default_archive_policy, plugin_manager)[source]

Bases: object

event_attributes(event)[source]
event_match(event_type)[source]
metric_match(metric_name)[source]
sample_attributes(sample)[source]

Previous topic

The ceilometer.dispatcher.file Module

Next topic

The ceilometer.dispatcher.http Module

Project Source

This Page