Re: [openstack-dev] [Ceilometer] Add a pollster plugin

2014-08-13 Thread Duan, Li-Gong (Gary@HPServers-Core-OE-PSC)
Thanks a lot, Doug. It does work after configuring pipeline.yaml.



Regards,

Gary

On Aug 12, 2014, at 4:11 AM, Duan, Li-Gong (Gary at 
HPServers-Core-OE-PSC)
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>> 
wrote:



> Hi Folks,

>

> Is there any best practices or good way to debug whether new pollster plugin 
> work fine for ceilometer?

>

> I'd like to add a new pollster plugin into Ceilometer by

>  - adding a new item under enterypoint/ceilometer.poll.central in 
> setup.cfg file

>  - adding the implementation code inheriting "plugin.CentralPollster".

>

> But when I "sudo python setup.py install" and restart ceilometer-related 
> services in devstack, NO new metering is displayed upon "ceilometer 
> meter-list" and I expect that there should be a new metering showing the item 
> defined in setup.cfg.

> Is there any other source/config files I need to modify or add?



You need to define a pipeline [1] to include the data from your new pollster 
and schedule it to be run.



Doug



[1] http://docs.openstack.org/developer/ceilometer/configuration.html#pipelines



>

> Thanks in advance,

> Gary



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] Add a pollster plugin

2014-08-12 Thread Doug Hellmann

On Aug 12, 2014, at 4:11 AM, Duan, Li-Gong (Gary@HPServers-Core-OE-PSC) 
 wrote:

> Hi Folks,
>  
> Is there any best practices or good way to debug whether new pollster plugin 
> work fine for ceilometer?
>  
> I’d like to add a new pollster plugin into Ceilometer by
>  - adding a new item under enterypoint/ceilometer.poll.central in 
> setup.cfg file
>  - adding the implementation code inheriting “plugin.CentralPollster”. 
>  
> But when I “sudo python setup.py install” and restart ceilometer-related 
> services in devstack, NO new metering is displayed upon “ceilometer 
> meter-list” and I expect that there should be a new metering showing the item 
> defined in setup.cfg.
> Is there any other source/config files I need to modify or add?

You need to define a pipeline [1] to include the data from your new pollster 
and schedule it to be run. 

Doug

[1] http://docs.openstack.org/developer/ceilometer/configuration.html#pipelines

>  
> Thanks in advance,
> Gary
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev