pcp
[Top] [All Lists]

Re: Derived metrics vs metrics with instances

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: Derived metrics vs metrics with instances
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 01 Mar 2012 12:11:23 +1100
Cc: Paul Smith <psmith@xxxxxxxxxx>, pcp <pcp@xxxxxxxxxxx>
In-reply-to: <970430263.251431.1330560745425.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
References: <970430263.251431.1330560745425.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
On Thu, 2012-03-01 at 11:12 +1100, Nathan Scott wrote:
> Hi Ken,
> 
> Paul and I were wondering if its possible to build a derived metric
> that
> uses specific instances of a metric as part of the expression.  For
> example,
> something like:
> 
> my.new.metric = network.interface.in.bytes["eth1"] +
> network.interface.out.bytes["eth1"]
> 
> ... appears to be unsupported?  (or, at least, I can't see code that
> parses
> the square braces anywhere).  Is that correct, or is there a way to do
> this?


No, this is something for RFE-land (certainly doable if the need is
sufficient) ... you could define

my.new.metric = network.interface.in.bytes + network.interface.out.bytes

and then pick the "eth1" instance of my.new.metric (the indom of the
derived metric is propagated from the operands).

How come Paul Smith is always around when the shortcomings of my derived
metrics implementation comes into question? ... 8^)>


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