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^)>
|