[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] How to get the host (slave) and vm real-time metrics(e.g. cpu_utilization)
HiÂall, IÂbuildÂaÂpoolÂincludesÂ3ÂhostsÂÂ:ÂvGate7ÂvGate8ÂvGate9.ÂÂvGate9ÂisÂtheÂmaster,othersÂareÂslaves. IÂbuildÂaÂpageÂtoÂshowÂtheÂhostÂandÂvmÂmetrics(e.g.Âcpu_utilization)ÂonÂtheÂsameÂpage.ItÂworksÂfineÂforÂtheÂmasterÂ(vGate9)Â.ButÂitÂcannotÂgetÂtheÂslaveÂmetrics. AsÂfollows:     InÂpython,IÂuseÂtheÂfollowingÂcodes to get the CPU Usage: IÂattemptÂtoÂmakeÂanÂAPIÂcallÂtoÂaÂslaveÂ(evenÂsomethingÂtrivialÂlikeÂpool.get_all()),ÂIÂgetÂthe ['HOST_IS_SLAVE' ] exception,ÂalongÂwithÂtheÂmaster'sÂIPÂaddress. TheÂmainÂproblemÂisÂtoÂget three hostsÂreal-timeÂperformingÂmetricsÂandÂtoÂshowÂthemÂonÂtheÂsameÂpage. IsÂthereÂanyÂworkaroundÂtoÂsolveÂthisÂproblem?ÂThankÂyouÂinÂadvance!  Best Regards! Jesson _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |