pcp
[Top] [All Lists]

Re: [pcp] pcp grafana and graphite - How to convert pcp metric values in

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: [pcp] pcp grafana and graphite - How to convert pcp metric values into percent
From: Amer Ather <aather@xxxxxxxxxxx>
Date: Tue, 1 Jul 2014 11:44:23 -0700
Cc: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, pcp@xxxxxxxxxxx, Martin Spier <mspier@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netflix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Rd+/gfE+cDnKyLdCSw009ZMCtYcCwirj8r9skfYz0WY=; b=PkJT6PROJdKadWBKksdSOqk1t/RJhFVtvtE4mKTLB5DecbhMKukKNjNq+ILkibYWIS 9UYaE8TnS6ifsmLR0wIO/VUXsGKndgasvxPL9cGcWbaVuR0bb2L7WlW0a2FY3Hazmy/w JecdeV0YDHaWrrTjQaxXny4xtU4/WnrplRkn0=
In-reply-to: <20140629220735.GA13993@xxxxxxxxxx>
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>
We need some additional help with derived metrics

As suggested, I created some derived CPU metrics:

kernel.pct.cpu.user = 100 * kernel.all.cpu.user / (hinv.ncpu * 1000)
kernel.pct.cpu.sys Â= 100 * kernel.all.cpu.sys / (hinv.ncpu * 1000)
kernel.pct.cpu.idle = 100 * kernel.all.cpu.idle / (hinv.ncpu * 1000)
kernel.pct.cpu.nice = 100 * kernel.all.cpu.nice / (hinv.ncpu * 1000)
kernel.pct.cpu.intr = 100 * kernel.all.cpu.intr / (hinv.ncpu * 1000)
kernel.pct.cpu.wait.total = 100 * kernel.all.cpu.wait.total / (hinv.ncpu * 1000)
...

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



# PCP_DERIVED_CONFIG=pctavg pminfo -f kernel.pct.cpu.user

kernel.pct.cpu.user
  value 12359528.75

What is the difference between grafana/graphite fetching from archive logs and fetching via pmapi or pminfo? How to fix it?

Thanks,
Amer.



On Sun, Jun 29, 2014 at 3:07 PM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:
Hi -

> I tried to rebuild pmwebd with graphite support from fche git branch but
> getting errors when try building pmwebapi. Last time it built fine. Is
> there any change made to the repo? [...]

Please try again now.

> /usr/bin/ld: pmgraphite.o: undefined reference to symbol 'pthread_create@
> @GLIBC_2.2.5'

Fixed with a new commit pushed to the branch.

- FChE



--
Thanks,

Amer Ather
Cloud Performance Engineering
<Prev in Thread] Current Thread [Next in Thread>