enabling ceilometer plugin

Asked by visharma

Hi,

I am using the latest grizzly-2 version.
I have written the code for a notification based ceilometer plugin.

In the docs it is mentioned that we can enable/disable plugins using a global configuration.
But I could not find out how to do that?
Can you point me to some documentation which explains the procedure?
I could only find this
http://wiki.openstack.org/EfficientMetering/ArchitectureProposalV1#Plugins
and this
http://docs.openstack.org/developer/ceilometer/contributing/plugins.html

Regards,
Vineet Sharma

Question information

Language:
English Edit question
Status:
Solved
For:
Ceilometer Edit question
Assignee:
No assignee Edit question
Solved by:
Eoghan Glynn
Solved:
Last query:
Last reply:
Revision history for this message
Best Eoghan Glynn (eglynn) said :
#1

Plugins are enabled in the first instance by adding the plugin name & classname to the appropriate section of the entry_points.txt file generated by setup.py:

  https://github.com/openstack/ceilometer/blob/master/setup.py#L90

e.g. for a notification listener, you would generally want this to be instantiated by the collector agent, so it would be added to the [ceilometer.collector] section.

To selectively disable a plugin, simply add the plugin name to the disabled_notification_listeners config option in the ceilometer.conf file used by the collector agent.

Revision history for this message
visharma (thevineet) said :
#2

Thanks Eoghan Glynn, that solved my question.