I think this is the last round of changes for derived metrics ... my
testing is now complete.
Changes committed to git://oss.sgi.com/kenj/pcp.git dev
src/libpcp/src/derive.c | 54 +++---
src/libpcp/src/derive.h | 26 +--
src/libpcp/src/derive_fetch.c | 334 +++++++++++++++---------------------------
src/libpcp/src/pmns.c | 10 +
src/pmdas/sample/help | 18 ++
src/pmdas/sample/pmns | 19 ++
src/pmdas/sample/src/sample.c | 315 ++++++++++++++++++++++++++-------------
7 files changed, 408 insertions(+), 368 deletions(-)
commit 7174480b8dc5d24acd3e6fa0116b51c602811c99
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu Jan 7 06:51:43 2010 +1100
pmLookupName - refine error handling with derived metrics
The return status is a little tricky as we make a second attempt for
a derived metric lookup for each unknown name if the original lookup
fails for any metric name, leading to a possible multiplicity of error
statuses ... prefer the status from receive_names(), unless all of the
remaining unknown names are resolved by __dmgetpmid() in which case
success (numpmid) is the right return status.
commit 40468e684637f8ab24f4da84d111163ac79b2462
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Jan 5 08:03:03 2010 +1100
sample PMDA - add sample.scramble.*
Some strange metrics with ill-behaved instance domains and in which
instances come and go, and the order of the returned instances is
random ... all based on the same indom as sample.bin
Also added a reset button (sample.scramble.version) to make the behaviour
repeatable for QA via pmstore.
commit c8f9ef4e2aee94c9b812b1d815d0c1f9b9c161a3
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Jan 5 08:01:09 2010 +1100
Derived metrics - minor fix up for fetch
Correct corner cases when instances are missing, added and the
order of instances is random between consecutive pmFetch calls.
Also added some more verbose diags around this code.
All triggered by the bizarre sample.scramble metrics recently
added to the sample PMDA.
commit 44e7728d3b34ad185c4a924711e6d994b1e0966e
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon Jan 4 08:06:34 2010 +1100
Derived metrics - refinement
After gcov analysis and some expanded coverage in the QA suite, there
is some dead code removal here, and additional metrics in the sample
PMDA.
|