pcp
[Top] [All Lists]

Re: [pcp] pmcc.py bug?

To: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Subject: Re: [pcp] pmcc.py bug?
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 3 Jun 2014 04:20:04 -0400 (EDT)
Cc: pcp <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5386E607.2020007@xxxxxxxxxx>
References: <5386E607.2020007@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: 77t1zL/biJK7q/wJve5ieoIbl4Uarw==
Thread-topic: pmcc.py bug?
Hi Mark,

----- Original Message -----
> pmcc doesn't seem to update it's metric values after each fetch beyond
> the first, but I may be calling it incorrectly. Here's a simple program
> demonstrating the issue, [...]

Attached is a revised version of your script which now handles all the
standard command line args.  It uses latest changes in dev branch to
the pcp.pmcc module (incl your fix), so things like this work now...

$ ./test-counters-pmcc.py -D all --host verge --samples=3 -t 0.2

... with as much common code pushed into pmcc as I sensibly could.  I
think there's still a little work that the script is doing that could
be pulled into pmcc as well, but for now this should keep you moving.

cheers.

--
Nathan

Attachment: test-counters-pmcc.py
Description: Text Data

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