pcp
[Top] [All Lists]

Re: [pcp] Combined metrics with PCP_DERIVED_CONFIG

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Combined metrics with PCP_DERIVED_CONFIG
From: Martin Spier <mspier@xxxxxxxxxxx>
Date: Fri, 25 Jul 2014 17:50:00 -0700
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netflix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/wfJDAMf6ttvTtoUX0aFTwE4D85/E5g7GBpc8xwxxLc=; b=goWdT1wmhrp8R0vdrfarsO6nAgSEnS85emAo3s3oTxHontTAORs7loC7CCqEEriF51 WYMG0oucR1AgaPYu6fCdaUe3yKhYXkfLbHt+VWo8FE0mbfhp6OJBHoq+/lAjWiE0lAi8 zig7T28ULsQdgXLCfnSkXHFOIdhyxsbnalr+M=
In-reply-to: <01dc01cfa84d$6e502cd0$4af08670$@internode.on.net>
References: <CAEp4+dUo5sQJU=5MyXmfOiXmTSGA13_vHkb8nCbGmLyj28gwDQ@xxxxxxxxxxxxxx> <53D16827.5010600@xxxxxxxxxxxxxxxx> <CAEp4+dXXaugyCsqJm56z6SMCGJTVWM1ZtZvc5TLnGCvaTic-JA@xxxxxxxxxxxxxx> <01dc01cfa84d$6e502cd0$4af08670$@internode.on.net>
I figure it would not be trivial to implement it, but I was counting on a slight chance that this would be an undocumented feature. :-) Anyway, this is not a roadblock, but it would make things easier on the UI side for me, hence, worth asking.

Thanks Ken and Frank for the prompt response!

Cheers,
Martin


On Fri, Jul 25, 2014 at 2:14 PM, Ken McDonell <kenj@xxxxxxxxxxxxxxxx> wrote:

Frank has used his psychic powers to pretty much pre-empt my answer.

Â

This twists the data semantics more than the âderived metricsâ support is willing to contemplate.

Â

The âinstancesâ youâve added would need instance domain support (enumeration, internal index to external name mapping and vice versa, an indom number) and it would only work for component metrics that have the same dimension (in the pmUnits sense) and probably only then for metrics that are scalar (have no associated instance domain).

Â

But with these restrictions, it would be technically feasible to define a set-value metric (as a derived metric) where the elements of the set are an ordered enumeration of the values of the metrics in the set). Unfortunately there is a lot of code, and little available effort, between âtechnically feasibleâ and âavailable in PCPâ.

Â

From: Martin Spier [mailto:mspier@xxxxxxxxxxx]
Sent: Saturday, 26 July 2014 4:26 AM
To: Ken McDonell
Cc: pcp@xxxxxxxxxxx
Subject: Re: [pcp] Combined metrics with PCP_DERIVED_CONFIG

Â

Sure. I'm building an UI that will consume PCP's API and besides other things, plot the live data. One of the charts I need to draw is composed of user and sys CPU. 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. Eg.:

â

Â


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