Changes committed to git://oss.sgi.com/pcp/pcp.git dev
qa/366.out | 55 ++++++++
qa/739 | 4
qa/742 | 28 ++++
qa/742.out | 7 +
qa/991 | 47 +++++++
qa/991.out | 57 ++++++++
qa/group | 2
qa/src/GNUlocaldefs | 2
qa/src/pcp-free.0 |binary
qa/src/pcp-free.index |binary
qa/src/pcp-free.meta |binary
qa/src/pcp-uptime.0 |binary
qa/src/pcp-uptime.index |binary
qa/src/pcp-uptime.meta |binary
src/pcp/GNUmakefile | 16 +-
src/pcp/free/.gitignore | 1
src/pcp/free/GNUmakefile | 34 +++++
src/pcp/free/pcp-free.1 | 125 +++++++++++++++++++
src/pcp/free/pcp-free.py | 224 +++++++++++++++++++++++++++++++++++
src/pcp/uptime/.gitignore | 1
src/pcp/uptime/GNUmakefile | 34 +++++
src/pcp/uptime/pcp-uptime.1 | 107 ++++++++++++++++
src/pcp/uptime/pcp-uptime.py | 133 ++++++++++++++++++++
src/pmlogconf/tools/atop | 3
src/pmlogconf/tools/atop-summary | 6
src/pmlogconf/tools/collectl-summary | 5
src/pmlogconf/tools/free | 13 ++
src/pmlogconf/tools/free-summary | 4
src/pmlogconf/tools/localdefs | 2
src/pmlogconf/tools/sar-summary | 2
src/pmlogconf/tools/uptime | 6
src/pmlogconf/tools/vmstat | 2
src/pmlogconf/tools/vmstat-summary | 5
src/python/pcp/pmapi.py | 86 ++++++++++---
src/python/pmapi.c | 145 ++++++++++++++++++----
35 files changed, 1089 insertions(+), 67 deletions(-)
commit 19b320a9955693a2d07596776a14a8966806308b
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri Apr 4 17:50:17 2014 +1100
PMAPI python implementations of uptime(1) and free(1)
To exercise some of the python PMAPI additions for automated
getopt handling in realistic settings, I've been using some
hand-rolled implementations of uptime(1) & free(1). These are
actually useful, allowing one to generate well-known output
formats of these tools retrospectively (--archive, --origin).
So, add these into the installed mix. Some very small example
archives are added to exercise these tools, along with tests
qa/742 and qa/991. Man pages also added describing all of the
regular tool options, plus the PCP additions.
A number of API changes are made as a result of building these
tools and getting them properly functional (esp archive mode):
- further improve error handling in the python exception class,
such that any pmErr exception can extend the report using the
same model pmLookupName does
- pass attempted connection string into pmNewContext exceptions
for improved reporting detail
- automatically setup the archive pmSetMode configuration for
scripts based on arguments passed in (pmOptions class grows
mode and delta fields)
- the python options callback does not require a return code,
this was accidentally, erroneously being mandated
- fix the handling of --origin for sub-second time windows
In adding these tools, and their associated pmlogconf files, I
came across several cases where other tools log configurations
were not splitting the log-once metrics from the continually
sampled metrics - I've fixed these up too here (atop, collectl,
sar configs affected).
|