pcp
[Top] [All Lists]

Re: [pcp] Fetch User CPU Usage as a Percentage?

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Fetch User CPU Usage as a Percentage?
From: Rohan Arora <rarora2012@xxxxxxxxx>
Date: Wed, 05 Aug 2015 13:30:57 +0000
Cc: Lukas Berk <lberk@xxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=UvOsw+smDRN0Js3fPpPjJdDvG4qbe0W2AdSBGsT+os0=; b=ZmpHAxnrtper/GaamClIJF627nEfgCNeUE+sHys3knPLeP+9ihleTRajkp+IYLJFlL B+XWpIgAvVa9a3dU/f8w/SHz24JEfgwCe+6xW1ZCOPv1yrjzUQqtK1zyOeCUAjkwzirk TikVYD+Y1BTl1lO1g+WIt36Bf2sjRcg7+p8Yj4dYS3srWLGlTpPRpDiTHsBkFIcPlH5K hIFLIKEaAEBMrAulrNGEECbpErWWStTo2hEjqAVdPUWI9CWv5v64z0+MZfb9AXJUBFr2 oktYK8waKGseTkiNCijid5xbTzEzLVcmpm+LGvTcBlKXnPDDU7mK3ZylqYYt8HWAxSOe 9JHw==
In-reply-to: <849907258.4457090.1438733991270.JavaMail.zimbra@xxxxxxxxxx>
References: <CANbxzdXXmYefH5B1in5zYSkAT8gOieN387sNXDTvTR=9gyUNOw@xxxxxxxxxxxxxx> <87egjp3ffv.fsf@xxxxxxxxxx> <CANbxzdXrhBZO1fOKU+31a+mpTq1JDiNuhXO=QUEkyeKypD-aZg@xxxxxxxxxxxxxx> <CANbxzdWJPJwB0FtAnBtRe--XWKmaK4c9h5vJAhAZzF=GmUf3Hw@xxxxxxxxxxxxxx> <CANbxzdUaNPg6NV28OdAj+iOUNPBSb3mmvjOdUgrE8KFRCj8rqQ@xxxxxxxxxxxxxx> <CANbxzdXSZE3WrAOn5LXjdK1DZsevERMZ8xBo-KRMe1GPPxk-uw@xxxxxxxxxxxxxx> <1899659656.1423571.1438300850093.JavaMail.zimbra@xxxxxxxxxx> <CANbxzdVd42n9nVZuGajmdRq3PPcU=8=cS8VMxTk==mw4QycfHA@xxxxxxxxxxxxxx> <849907258.4457090.1438733991270.JavaMail.zimbra@xxxxxxxxxx>
I had the versions of the files from 3.10.5. I just grabbed the latest versions from github, now seeing a lot of things that were missing before. Thanks!

Best,
Rohan

On Tue, Aug 4, 2015 at 8:19 PM Nathan Scott <nathans@xxxxxxxxxx> wrote:


----- Original Message -----
> I looked through the file and I am confused about a couple of things. I
> didn't see a builder()

src/python/pcp/pmcc.py line 548

> or run() method in the pmcc.py file,

line 608 of same file. Are you using a (very) old version of PCP perhaps?
See "git.pcp.io/pcp master" for a current version, these methods have been
there for quite some time though.

> and I wasn't
> really sure what was happening in these functions, aside from the obvious.
> Where is the source for these two functions? Also, is it required to build
> a MetricGroupManager as shown in pcp-iostat.py? Am I able to just use
> MetricGroup objects instead of using a MetricGroupManager?

Pretty sure you can build your own - just see the MetricGroupManager code
and how it manages things, and re-implement/re-use as you see fit.

cheers.

--
Nathan
<Prev in Thread] Current Thread [Next in Thread>