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: Fri, 27 Jun 2014 21:14:07 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0mha353ky5.fsf@xxxxxxxx> (Frank Ch. Eigler's message of "Fri, 27 Jun 2014 21:02:42 -0400")
References: <CAM1aq-HG2oJxCx1EAA0Zr+W7-NsSmVfThb8zG35FOKC4mbbnww@xxxxxxxxxxxxxx> <y0mha353ky5.fsf@xxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
> [...]
> This sort of thing could be expressed at the PCP level in at least two
> ways: client-side derived metrics, or the server-side pmdasummary.
> The former looks more appropriate here, but pmwebd doesn't have
> support for that just yet.  Lemme go hack a little bit.

Actually, hacking not required.  libpcp already automagically lets you
add derived metrics to any pcp client using the $PCP_DERIVED_CONFIG
environment variable.  See man PCPintro(1) & pmLoadDerivedConfig(3).

- FChE

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