[openstack-dev] questions about nova compute monitors extensions
Joe Cropper
cropper.joe at gmail.com
Sun Sep 13 05:45:49 UTC 2015
The new framework does indeed support user-defined monitors. You just extend whatever monitor’d like (e.g., nova.compute.monitors.cpu.virt_driver.Monitor) and add your customized logic. And since the new framework uses stevedore-based extension points, you just need to be sure to add the appropriate entry to your project’s setup.py file (or entry_points.txt in your egg) so that stevedore can load them properly.
Hope this helps!
Thanks,
Joe
> On Sep 10, 2015, at 2:52 AM, Hou Gang HG Liu <liuhoug at cn.ibm.com> wrote:
>
> Hi all,
>
> I notice nova compute monitor now only tries to load monitors with namespace "nova.compute.monitors.cpu", and only one monitor in one namespace can be enabled(
> https://review.openstack.org/#/c/209499/6/nova/compute/monitors/__init__.py <https://review.openstack.org/#/c/209499/6/nova/compute/monitors/__init__.py>).
>
> Is there a plan to make MonitorHandler.NAMESPACES configurable or just hard code constraint as it is now? And how to make compute monitor support user defined as it was?
>
> Thanks!
> B.R
>
> Hougang Liu (刘侯刚)
> Developer - IBM Platform Resource Scheduler <Mail Attachment.gif>
> Systems and Technology Group
>
> Mobile: 86-13519121974 | Phone: 86-29-68797023 | Tie-Line: 87023 陕西省西安市高新六路42号中清大厦3层
> E-mail: liuhoug at cn.ibm.com Xian, Shaanxi Province 710075, China
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150913/b72fe50b/attachment.html>
More information about the OpenStack-dev
mailing list