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: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Wed, 2 Jul 2014 14:04:23 -0400
Cc: pcp@xxxxxxxxxxx, Martin Spier <mspier@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CAM1aq-EGP8=DGUva+JSk3WMeLRisi0Weg3spN1+SLghgrOKVtQ@xxxxxxxxxxxxxx>
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> <y0m1tu41lld.fsf@xxxxxxxx> <CAM1aq-EGP8=DGUva+JSk3WMeLRisi0Weg3spN1+SLghgrOKVtQ@xxxxxxxxxxxxxx>
User-agent: Mutt/1.4.2.2i
Hi -

> So what I understand that rate conversion does not work for PMWEBAPI client
> but works fine for pmval and pmwebd graphite extension.

Exactly, though I wouldn't say "works" or "does not work".  Rate
conversion was not intended to be done by the PMWEBAPI layer: it's a
very shallow mapping of the C PMAPI.

> I tested it and that is exactly what I am seeing. pmval is doing rate
> conversion, but curl is returning raw values. 

OK.

> That means our UI client has to do rate conversion when using
> PMWEBAPI call.

... or else we can extend PMWEBAPI to have a rate-conversion option.
What that needs is a history component - previous records from which
to compute deltas.  PMWEBAPI's non-live (archive) support is pretty
weak too; we could improve both these aspects if you need them.


- FChE

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