Add plugin support to the notification portion of the collector daemon.

Implement a Counter class for use by notification plugins.
Define a base class for Notification plugins.
Define a dispatcher class for notification events to be passed to the plugins.
Add a notification plugin for instance creation and "instance" counters.
Add a reusable function for turning a Counter into a metering event dictionary.

Change-Id: Iaa626b98e1a661ed31cc8b8e95263c111df20888
This commit is contained in:
Doug Hellmann
2012-05-22 15:10:09 -04:00
parent cc5b02dc84
commit 73c9150afe
17 changed files with 508 additions and 82 deletions

View File

@@ -19,14 +19,21 @@
import setuptools
setuptools.setup(name='ceilometer',
version='0',
description='cloud computing metering',
author='OpenStack',
author_email='ceilometer@lists.launchpad.net',
url='https://launchpad.net/ceilometer',
packages=setuptools.find_packages(exclude=['bin']),
include_package_data=True,
test_suite='nose.collector',
scripts=['bin/ceilometer-nova-compute'],
py_modules=[])
setuptools.setup(
name='ceilometer',
version='0',
description='cloud computing metering',
author='OpenStack',
author_email='ceilometer@lists.launchpad.net',
url='https://launchpad.net/ceilometer',
packages=setuptools.find_packages(exclude=['bin']),
include_package_data=True,
test_suite='nose.collector',
scripts=['bin/ceilometer-nova-compute'],
py_modules=[],
entry_points={
'ceilometer.collector.compute': [
'instance_create = ceilometer.compute.notifications:InstanceCreate',
],
},
)