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@xxxxxxxx
>
>
>
>
>
> _______________________________________________
> pcp mailing list
> pcp@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/pcp
|