pcp
[Top] [All Lists]

Re: Calculated/derived metrics?

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: Calculated/derived metrics?
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Thu, 07 May 2015 16:35:45 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <554AFE4E.80000@xxxxxxxxxxxxxxxx> (Ken McDonell's message of "Thu, 07 May 2015 15:55:26 +1000")
References: <5534C680.2020709@xxxxxxxxxx> <493537984.3276058.1429528962326.JavaMail.zimbra@xxxxxxxxxx> <5534EBA8.4030509@xxxxxxxxxx> <1644393599.3651017.1429563442835.JavaMail.zimbra@xxxxxxxxxx> <55364606.1000503@xxxxxxxxxx> <55472B40.7050800@xxxxxxxxxx> <5547DE11.5050800@xxxxxxxxxxxxxxxx> <5549E4CD.5000408@xxxxxxxxxx> <554AFE4E.80000@xxxxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
kenj wrote:

> [...]
>> [...] For example, I tried to derive the bytes-written/s for a
>> process being monitored with hotproc. A process' lifetime can roughly be
>> calculated with kernel uptime - the process' start_time / 100. But
>> testing with something like:
>> 
>> write_per_sec = hotproc.io.write_bytes / (kernel.all.uptime -
>> hotproc.psinfo.start_time/100)
>> 
>> leads to an (expected) error as there are several instances. ...
> [...]
> The problem in your example is that the expression involves the
> counter hotproc.io.write_bytes and this is being divided by
> something with the units of time that is not a counter.  [...]

Is the rate() derived-metrics function applicable here?


- FChE

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