pcp
[Top] [All Lists]

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

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] PMIE : Using raw value for a counter
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 01 Jun 2015 21:48:06 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1431663705.6445.46.camel@xxxxxxxxxxxxx>
References: <1431663705.6445.46.camel@xxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
Hi Chandana,

On 15/05/15 14:21, Chandana De Silva wrote:
All,
I need to evaluate the raw value in PMIE of a metric which has been
defined as a Counter.

The metric is ;

$ pminfo -T -d  -h gwdb01.prod.mel.au.m4u.com.au mysql.status.com_slave_start

mysql.status.com_slave_start
     Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
     Semantics: counter  Units: count
Help: <empty entry>

Since this value does not change very often, pmie sees the value as 0.

Is there any way I can force pmie to use the raw value ?

I just committed a change to pmie to add a new "instant" unary operator.

Once this flows upstream, you'll be able to so

        instant mysql.status.com_slave_start > 0 -> some_action;
or
        instant(mysql.status.com_slave_start) > 0 -> some_action;

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [pcp] PMIE : Using raw value for a counter, Ken McDonell <=