pcp
[Top] [All Lists]

RE: [pcp] PMIE : Using raw value for a counter

To: <chandana@xxxxxxxxxxxxx>, <pcp@xxxxxxxxxxx>
Subject: RE: [pcp] PMIE : Using raw value for a counter
From: "Ken McDonell" <kenj@xxxxxxxxxxxxxxxx>
Date: Sat, 16 May 2015 07:21:50 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1431663705.6445.46.camel@xxxxxxxxxxxxx>
References: <1431663705.6445.46.camel@xxxxxxxxxxxxx>
Thread-index: AQGpJOWaMA3cwVxl+8GY015o3Nj2FJ3MXpiA

> -----Original Message-----
> From: pcp-bounces@xxxxxxxxxxx [mailto:pcp-bounces@xxxxxxxxxxx] On Behalf
> Of Chandana De Silva
> Sent: Friday, 15 May 2015 2:22 PM
> To: pcp@xxxxxxxxxxx
> Subject: [pcp] PMIE : Using raw value for a counter
> 
> All,
> I need to evaluate the raw value in PMIE of a metric which has been defined as
> a Counter.
> ...

As Nathan has already said, there is no way in today's pmie.

The reason is that no one has ever asked for it until recently, and now two 
different requests for equivalent functionality ... one for derived metrics and 
this one for pmie.  If we implemented the former, you'd have the latter.

I think it is simple to do in both places, and I have it in my TODO queue for 
the release after  the pending one (so 3.10.6).

I am struggling for a good name for the function to do this (I'd prefer to use 
the same name for derived metrics and pmie).

Something like value(x) or norate(x) would take an expression (x) with counter 
semantics and return the current value of x without the normal rate conversion.

Votes for value() or norate() would be appreciated, as would suggestions for a 
better name.

Sorry this does not help your immediate requirement.

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