pcp
[Top] [All Lists]

Re: Combined metrics with PCP_DERIVED_CONFIG

To: Martin Spier <mspier@xxxxxxxxxxx>
Subject: Re: Combined metrics with PCP_DERIVED_CONFIG
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Fri, 25 Jul 2014 14:42:39 -0400
Cc: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CAEp4+dXXaugyCsqJm56z6SMCGJTVWM1ZtZvc5TLnGCvaTic-JA@xxxxxxxxxxxxxx> (Martin Spier's message of "Fri, 25 Jul 2014 11:26:18 -0700")
References: <CAEp4+dUo5sQJU=5MyXmfOiXmTSGA13_vHkb8nCbGmLyj28gwDQ@xxxxxxxxxxxxxx> <53D16827.5010600@xxxxxxxxxxxxxxxx> <CAEp4+dXXaugyCsqJm56z6SMCGJTVWM1ZtZvc5TLnGCvaTic-JA@xxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
mspier wrote:

> [...] As of now, I need to fetch two metrics, kernel.all.cpu.sys and
> kernel.all.cpu.user, each returning a separate data structure and
> combine them.  [...]  And what I'm hoping to achieve is something
> like this: [...]

... to create a new metric with a indexed instance domain.  Sorry, I
don't think the current pmRegisterDerived(3) implementation allows
that.

(Perhaps code for parsing the separate metrics would be well-spent
investment anyway.  That's because eventually, you'll likely need
other metrics that can't be squished into a single instance-domained
derived one due to differences in type/scale.)

- FChE

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