pcp
[Top] [All Lists]

Re: [pcp] Querying a single instance of metric

To: chandana@xxxxxxxxxxxxx
Subject: Re: [pcp] Querying a single instance of metric
From: Max Matveev <makc@xxxxxxxxx>
Date: Wed, 28 Mar 2012 10:32:54 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <4F723B28.9040005@xxxxxxxxxxxxx>
References: <4F723B28.9040005@xxxxxxxxxxxxx>
On Wed, 28 Mar 2012 09:11:52 +1100, Chandana De Silva wrote:

 chandana> But not when you query one instance.

 chandana> [chandana@tardis tmp]$ pminfo -f -a 20120327 
kernel.percpu.cpu.idle[0]
 chandana> Error: kernel.percpu.cpu.idle[0]: Unknown metric name

 chandana> Why doesn't this one work ? I want to be able to list a
 chandana> single instance.  I am sure that I have doe this before
 chandana> .. It is the same on all the tools. What am I doing wrong ?

pminfo and most other tools aint no too smart to know instances,

pmval -i cpu0 -s 1 -r kernel.percpu.cpu.idle

is one way of fetching single instance of a metric.

The other option is pmprobe and sed/perl/awk.

max

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