pcp
[Top] [All Lists]

Derived metrics vs metrics with instances

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, Paul Smith <psmith@xxxxxxxxxx>
Subject: Derived metrics vs metrics with instances
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 1 Mar 2012 11:12:25 +1100 (EST)
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <729351939.251219.1330560443756.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
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?

cheers.

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