pcp
[Top] [All Lists]

Re: [pcp] nfsclient pmda

To: Martins Innus <minnus@xxxxxxxxxxx>
Subject: Re: [pcp] nfsclient pmda
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 25 Feb 2014 16:39:06 -0500 (EST)
Cc: pcp@xxxxxxxxxxx, Ben Myers <bpm@xxxxxxx>, Max Matveev <makc@xxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <530D0904.2090804@xxxxxxxxxxx>
References: <52F3A564.4060007@xxxxxxxxxxx> <1469416634.21700255.1391728771761.JavaMail.root@xxxxxxxxxx> <D2E9833E-1D7F-41F5-97C4-4438712E3BF2@xxxxxxxxxxx> <742242243.21951337.1391769716120.JavaMail.root@xxxxxxxxxx> <530D0904.2090804@xxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: UZYyLrqiy9RdpOuAmLljI/bjblmm5A==
Thread-topic: nfsclient pmda

----- Original Message -----
> On 2/7/14 5:41 AM, Nathan Scott wrote:
> > ----- Original Message -----
> >>    Yes that would be great to get it in the tree. We are very interested
> >>    in these metrics and would look at getting it up and running.
> >>
> > OK, its merged now and disabled from packaging pending your review,
> > updating, testing & so on.  Good luck, and have fun!
> 
> Thanks.  Got it working with the attached patch.  For now I just ignore
> the statvers.  Seems to give sane values on a simple nfs setup.

Good stuff!

> Is there an example perl pmda that uses pmdaCache that I could look at?
> I probably don't have the time to rewrite in Python right now, but could
> hack on the existing perl following Max's suggestions as I have time.

Have a look at the src/pmdas/simple/pmdasimple.perl code - this PMDA has
both styles.  The $color_indom uses the array style and $now_indom uses a
hash (under the covers, in PCP::PMDA, the latter translates to pmdaCache
use).

cheers.

--
Nathan

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