<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">Hope this helps!</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Joe</div><div class=""><div><blockquote type="cite" class=""><div class="">On Sep 10, 2015, at 2:52 AM, Hou Gang HG Liu <<a href="mailto:liuhoug@cn.ibm.com" class="">liuhoug@cn.ibm.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="sans-serif" class="">Hi all,</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">I notice nova compute monitor now only
tries to load monitors with namespace "</font><font size="3" class="">nova.compute.monitors.cpu</font><font size="2" face="sans-serif" class="">",
and only one monitor in one namespace can be enabled(</font>
<br class=""><a href="https://review.openstack.org/#/c/209499/6/nova/compute/monitors/__init__.py" class=""><font size="2" color="blue" face="sans-serif" class="">https://review.openstack.org/#/c/209499/6/nova/compute/monitors/__init__.py</font></a><font size="2" face="sans-serif" class="">).</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">Is there a plan to make <b class="">MonitorHandler.NAMESPACES</b>
configurable or just hard code constraint as it is now? And how to make
compute monitor support user defined as it was?</font>
<br class="">
<br class=""><font size="3" class="">Thanks!</font>
<br class=""><font size="3" class="">B.R</font>
<br class="">
<hr class="">
<br class=""><font size="3" color="#8f8f8f" class=""><b class="">Hougang Liu (刘侯刚)</b></font>
<br class=""><font size="1" color="#5f5f5f" face="Arial" class="">Developer - IBM Platform Resource
Scheduler
</font><span id="cid:_1_0AF6152C0AF61230002B55F248257EBC"><Mail Attachment.gif></span>
<br class=""><font size="1" color="#5f5f5f" face="Arial" class="">Systems and Technology Group</font>
<br class="">
<br class=""><font size="1" color="#4181c0" face="Arial" class=""><b class="">Mobile:</b></font><font size="1" color="#5f5f5f" face="Arial" class="">
86-13519121974</font><font size="1" color="#4181c0" face="Arial" class=""> | <b class="">Phone:</b></font><font size="1" color="#5f5f5f" face="Arial" class="">
86-29-68797023</font><font size="1" color="#4181c0" face="Arial" class=""> | <b class="">Tie-Line:</b></font><font size="1" color="#5f5f5f" face="Arial" class="">
87023</font><font size="1" color="#4181c0" face="Arial" class=""><b class="">
</b></font><font size="1" color="#5f5f5f" face="sans-serif" class="">陕西省西安市高新六路</font><font size="1" color="#5f5f5f" face="Arial" class="">42</font><font size="1" color="#5f5f5f" face="sans-serif" class="">号中清大厦</font><font size="1" color="#5f5f5f" face="Arial" class="">3</font><font size="1" color="#5f5f5f" face="sans-serif" class="">层</font><p class=""><font size="1" color="#4181c0" face="Arial" class=""><b class="">E-mail:</b></font><font size="1" color="#5f5f5f" face="Arial" class="">
<a href="mailto:liuhoug@cn.ibm.com" class="">liuhoug@cn.ibm.com</a></font><font size="1" color="#4181c0" face="Arial" class=""><b class="">
</b></font><font size="1" color="#5f5f5f" face="Arial" class="">
Xian, Shaanxi Province
710075, China </font>
</p><p class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">
</font><font size="1" color="#5f5f5f" face="Arial" class=""><br class="">
</font><font size="1" color="#4181c0" face="Arial" class=""><b class=""><br class="">
</b></font>
__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></p></div></blockquote></div><br class=""></div></body></html>