pcp
[Top] [All Lists]

Re: pcp grafana and graphite - How to convert pcp metric values into per

To: Amer Ather <aather@xxxxxxxxxxx>
Subject: Re: pcp grafana and graphite - How to convert pcp metric values into percent
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Tue, 01 Jul 2014 23:33:02 -0400
Cc: pcp@xxxxxxxxxxx, Martin Spier <mspier@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CAM1aq-Hr2ss+b82p1EMCRTjK_Vsbnde_tKVv53MQfP25p4e-aw@xxxxxxxxxxxxxx> (Amer Ather's message of "Tue, 1 Jul 2014 11:44:23 -0700")
References: <CAM1aq-HG2oJxCx1EAA0Zr+W7-NsSmVfThb8zG35FOKC4mbbnww@xxxxxxxxxxxxxx> <y0mha353ky5.fsf@xxxxxxxx> <y0m8uoh3kf4.fsf@xxxxxxxx> <002d01cf9284$dc8fe570$95afb050$@internode.on.net> <002f01cf9285$f0c63160$d2529420$@internode.on.net> <CAM1aq-HgP5+Tsq_sCLWH6GrLOn8UXQWaEVkVaC1p=TT_kMn6Tg@xxxxxxxxxxxxxx> <20140629220735.GA13993@xxxxxxxxxx> <CAM1aq-Hr2ss+b82p1EMCRTjK_Vsbnde_tKVv53MQfP25p4e-aw@xxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Amer Ather <aather@xxxxxxxxxxx> writes:

> [...]  grafana/graphite reports these values from archives correctly
> in percent.  However, pmapi fetch returns wrong values: [...]

The graphite emulation code in pmwebd performs rate conversion (since
it has easy historical data to go from); the PMWEBAPI part passes raw
metric values (and libpcp doesn't want to rate-convert [1]).  This
could explain the mismatch between your expectations and what you're
seeing.

[1] http://oss.sgi.com/archives/pcp/2014-05/msg00104.html

- FChE

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