pcp
[Top] [All Lists]

Re: PCP versions of console tools - Next Steps

To: Ryan Doyle <ryan@xxxxxxxxxxxx>
Subject: Re: PCP versions of console tools - Next Steps
From: Sitaram Shelke <sitaramshelke@xxxxxxxxx>
Date: Sun, 8 May 2016 18:38:49 +0530
Cc: Ryan Doyle <ryan.doy@xxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=oswOacK6/BqPLUABu8NZ3p0WYa2FGGc6e1o4JUvkl84=; b=S0iM7G/3pHipy/vuI1Z0lO+5rq6fCog6bxyII0GV2FZLV4zCm3Fw5BLE0iCkElj0v9 kg+EfVK5YStwf5smgHl7BVlSkAuDtLAezegHgU616dxOr3/6xtyIuGD700j9ruCxAic2 LHXHfjwMfSSnhoVGS2rrVtLH1niwKl1cv9iM8CC1nai0Jx3klurQ40JF+U7/BX++25Vo WNvVhjp783DGWBfRg5ayJ7Hqi2bOzUohT1XOYRo3GWmzp72QAz47lBl725y1C6WLEpEw IHryhq7tgMCzBHNdPm3dcdxpiXmGdPk0SYzjNHXY30asq4dR0KmNB6JPLXp9QyZ4ck9j FmRg==
In-reply-to: <572F065E.20601@xxxxxxxxxxxx>
References: <CAHnM1zzTfNgt4Hsgt_Pgq7M-yz+ewd_FehB+QMxixE1MFfKOvA@xxxxxxxxxxxxxx> <572F065E.20601@xxxxxxxxxxxx>
Hi Ryan,
Let me know what you think of it.Â

Regards,
SItaram

On Sun, May 8, 2016 at 2:56 PM, Ryan Doyle <ryan@xxxxxxxxxxxx> wrote:
Hi Sitaram

> I am really sorry but I think there has been some issue with my mail
> account as I did not recieve any mails from your mail id

That's weird, I've been sending to the mailing list as well as sending to you directly. Have you been receiving other emails from the mailing list? If we continue to have trouble I might just switch over to using my GMail account.

> Now that I have read all the mails, I'll start immediately. As mentioned
> in the mail I would be writing a simple code to use pmapi.h to grab
> disk.all.read metric and then we can start with the pidstat.

Sounds good. I'd suggest starting with the Python version of pmapi instead of the C pmpai.h version. It's most likely what we will want to use for writing a PCP-variant pidstat. Have a look at 'src/pcp/uptime/pcp-uptime.py' as a starting point.

If you've already had a look at the C pmapi.h thats great - what you've learned in that applies pretty much 1-to-1 for the Python pmapi.

For the first task of printing out 'disk.all.read', are you able to put the code up somewhere on-line that we can check out?

We'll have a chat again about pidstat once you've had a chance to play with pmapi.

Cheers!
Ryan



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