The ceilometer.dispatcher.gnocchi Module

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

Bases: ceilometer.dispatcher.MeterDispatcherBase

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

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

exception ceilometer.dispatcher.gnocchi.ResourcesDefinitionException(message, definition_cfg)[source]

Bases: exceptions.Exception

Previous topic

The ceilometer.dispatcher.file Module

Next topic

The ceilometer.dispatcher.http Module

Project Source

This Page