pcp
[Top] [All Lists]

Re: [pcp] CPU metris in Percentage instead of millisec

To: William Staten <William_Staten@xxxxxxxxxxxxxxx>
Subject: Re: [pcp] CPU metris in Percentage instead of millisec
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 9 May 2016 20:49:18 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <OF81FFE730.585A3152-ON85257FAB.00491E5B-85257FAB.0049D3F8@xxxxxxxxxxxxxxx>
References: <OFCEB82505.6E60C7AE-ON85257FA9.006495E0-85257FA9.0064EB1F@xxxxxxxxxxxxxxx> <199652686.45418494.1462413191474.JavaMail.zimbra@xxxxxxxxxx> <OF81FFE730.585A3152-ON85257FAB.00491E5B-85257FAB.0049D3F8@xxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: E/2fFvBbeDcHDOgBn9Ba1vpgL1YxAA==
Thread-topic: CPU metris in Percentage instead of millisec

----- Original Message -----
> Thanks Nathan. I updated the pmwebd.options file with the
> PCP_DERIVED_CONFIG=/path/to/your/file. If I run export PCP_DERIVED_CONFIG=
> pathtofile and then pmval -t 2sec cpu.percent.user I can see the output in
> percentage. Is it a way to get this sent to the graphite or grafana for
> graphing? Is any documentation on that? I have searched for some
> documentation but maybe I am not looking in the correct place.
> 

The derived metric support is provided by libpcp.  pmwebd and pcp2graphite
both use that thus automatically support them, so this should all Just Work
magically for those tools.  Best place for docs is the man pages for those
tools, and PCPIntro which describes the env vars affecting all libpcp users.

cheers.

--
Nathan

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