pcp
[Top] [All Lists]

Re: [pcp] PCP versions of console tools - Next Steps

To: Ryan Doyle <ryan@xxxxxxxxxxxx>, Sitaram Shelke <sitaramshelke@xxxxxxxxx>
Subject: Re: [pcp] PCP versions of console tools - Next Steps
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 15 May 2016 21:31:03 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <57369D43.30608@xxxxxxxxxxxx>
References: <CAHnM1zzTfNgt4Hsgt_Pgq7M-yz+ewd_FehB+QMxixE1MFfKOvA@xxxxxxxxxxxxxx> <573067F5.9040409@xxxxxxxxxxxx> <CAHnM1zxDgpxK2m5AQ=pL8Dwz1nydtW36ZJC8wkj9axYDdaMiMg@xxxxxxxxxxxxxx> <57307EA4.1070204@xxxxxxxxxxxx> <CAHnM1zxJj8c6A18YUmjDXDJvc_Nwb=MwzxkCAfwUE3=OGXt25w@xxxxxxxxxxxxxx> <y0mshxowm4w.fsf@xxxxxxxx> <CAHnM1zz9TiS02n0S_YigoMhqcnOjambYqLcmH-aTmie_m2ZOYg@xxxxxxxxxxxxxx> <57369D43.30608@xxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: QMVik42bvIX41dF06+7OTkJPfv2bBQ==
Thread-topic: PCP versions of console tools - Next Steps
Hi guys,

----- Original Message -----
> On 12/05/16 03:25, Sitaram Shelke wrote:
> > Thank you for the input and yes using pmFetchGroup() is the next task on
> > my board. Ryan suggested trying pmFetch() first and then going after
> > pmFetchGroup().
> 
> Thanks Sitaram, I've checked it out and it looks like you've got the
> hang of the fetchgroup API.
> 
> I've added a task to check out the pmcc module and some of the classes
> in there that abstracts the pmapi further. It's also got some useful
> classes for building tools like pidstat.

Best bet would be pmcc module extension to allow use of fetchgroups under
the hood - noone has taken on this work yet though.

Ultimately what we'd like is for python scripts to be just: command line
options (i.e. a pmOptions object) plus report() function, and the helper
"convenience" classes take care of the rest (building on top of whichever
APIs they need to under the covers).

> I've added more information in the Wekan card but have a look at
> pcp-iostat.py as a starting point. It's likely we will want to use this
> for the implementation of pidstat.

+1  - and feel free to extend the python modules as part of your work too
Sitaram - there's definitely room for improvement there still.

cheers.

--
Nathan

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