Running an agent-central plugin

Asked by visharma

Hi,

I have created a ceilometer-agent-central plugin (testplugin)
When I start it using
$> ceilometer-agent-central --config-file /etc/ceilometer/ceilometer-agent-central.conf
I see in the log that it loads the newly created plugin
....INFO ceilometer.central.manager [-] loaded pollster ceilometer.poll.central:testplugin

But I do not see the get_counters() method being called. Is there a way to manually call the plugin or to adjust the frequency of the calling. If not then what is the default frequency at which the agent-central invokes the plugins's get_counters method ??

Question information

Language:
English Edit question
Status:
Solved
For:
Ceilometer Edit question
Assignee:
No assignee Edit question
Solved by:
Lianhao Lu
Solved:
Last query:
Last reply:
Revision history for this message
visharma (thevineet) said :
#1

Just to add, I am using the latest grizzly-2 version.

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

The plugin does seem to run now.
What I found is that in the earlier ceilometer version 0.1, the plugins were just loaded on startup of ceilometer-agent-central but with the grizzly release, they are executed once on start.

But still want to find out what is the frequency of running pollsters in the agent central and how it can be configured. Can we have separate frequency for different pollsters ?

Revision history for this message
Best Lianhao Lu (lianhao-lu) said :
#3

The current frequency is configured by periodic_interval in the configuration file. We're implementing the different interval, please see the bp https://blueprints.launchpad.net/ceilometer/+spec/publisher-counters-frequency.

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

Thanks Lianhao Lu, that solved my question.