X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o44IdFlu247679 for ; Tue, 4 May 2010 13:39:15 -0500 Received: from zion.americas.sgi.com (zion.americas.sgi.com [128.162.236.17]) by relay2.corp.sgi.com (Postfix) with ESMTP id E77B8304039; Tue, 4 May 2010 11:41:20 -0700 (PDT) Received: (from daw@localhost) by zion.americas.sgi.com (8.12.9/ASC-news-1.4) id o44IfKUV38561632; Tue, 4 May 2010 13:41:20 -0500 (CDT) Message-Id: <201005041841.o44IfKUV38561632@zion.americas.sgi.com> Subject: Re: [pcp] pcp Digest, Vol 16, Issue 3 To: kenj@internode.on.net Date: Tue, 4 May 2010 13:41:20 -0500 (CDT) Cc: pcp@oss.sgi.com In-Reply-To: <1265318632.6030.5.camel@bozo.localdomain> from "Ken McDonell" at Feb 05, 2010 08:23:52 AM From: David Wright X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean Ken, Can I use a conditional like if (tcp_opens < 1) then tcp_opens=0 > > As Jason suggests, man pmRegisterDerived is a good place to start. > > Here is a small illustration by example, also. > > $ cat $HOME/.pcp/derived > tcp_opens = network.tcp.activeopens + network.tcp.passiveopens > disk.dev.read_pct = 100 * delta(disk.dev.read) / (delta(disk.dev.read) + delta(disk.dev.write)) > > $ export PCP_DERIVED_CONFIG=$HOME/.pcp/derived > > $ pminfo -md disk.dev.read disk.dev.read_pct > > disk.dev.read PMID: 60.0.4 > Data Type: 32-bit unsigned int InDom: 60.1 0xf000001 > Semantics: counter Units: count > > disk.dev.read_pct PMID: 511.0.2 > Data Type: double InDom: 60.1 0xf000001 > Semantics: instant Units: none > > $ pmval tcp_opens > > metric: tcp_opens > host: localhost > semantics: cumulative counter (converting to rate) > units: count (converting to count / sec) > samples: all > 0.0 > 0.9997 > 0.0 > ... > > Launch pmchart and you'll find disk.dev.read_pct right in the middle of > the other disk.dev.* metrics in the metric selector. > > On Thu, 2010-02-04 at 11:14 -0800, Jason Rappleye wrote: > > Hi Dave, > > > > On Feb 4, 2010, at 10:53 AM, David Wright wrote: > > > > >> - Derived metric support. > > > > > > IS ther documentation or a pointer for derived metrics. Been waiting > > > for that. > > > > > > > Went digging for it this morning..."man pmRegisterDerived" is a good > > start, along with other man pages referenced at the end of that page. > > > > j > > > > > thanks, > > > Dave Wright > > > > -- > > Jason Rappleye > > System Administrator > > NASA Advanced Supercomputing Division > > NASA Ames Research Center > > Moffett Field, CA 94035 > > jason.rappleye@nasa.gov > > > > > > > > > > > > _______________________________________________ > > pcp mailing list > > pcp@oss.sgi.com > > http://oss.sgi.com/mailman/listinfo/pcp > > > >