[pcp] Derived Metrics and pmlogsummary.. ? Is it supposed to work?

Paul Smith psmith at aconex.com
Wed Sep 7 20:00:57 CDT 2011


hey all,

I created a derived metric via the 'creative' environment variable way, works great for pmdumptext etc.

Doesn't seem to work for pmlogsummary though ?

psmith at web4.syd.acx:/var/log/pcp/pmlogger/app1 [PRODUCTION]
$ cat /tmp/foo
bytes_per_query = delta(aconex.controllers.db.in.bytes) / delta(aconex.controllers.db.count)

psmith at web4.syd.acx:/home/psmith [PRODUCTION]
$ export PCP_DERIVED_CONFIG=/tmp/foo 

$ pmlogsummary -a  20110906 -S at 08:00 -T at 09:00 -I bytes_per_query[mel/total]
Log Label (Log Format Version 2)
Performance metrics from host app1
  commencing Tue Sep  6 08:00:00.000 2011
  ending     Tue Sep  6 09:00:00.000 2011

psmith at web4.syd.acx:/var/log/pcp/pmlogger/app1 [PRODUCTION]
$ 


I get nothing.  Works fine for pmdumptext though ?

$ pmdumptext -X -a  20110906 -S at 08:00 -T at 09:00  bytes_per_query[mel/total] | head
[ 1] bytes_per_query["mel/total"]

             Column	     1
Tue Sep  6 08:00:00	     ?
Tue Sep  6 08:00:01	 6.04K
Tue Sep  6 08:00:02	 6.05K
Tue Sep  6 08:00:03	 6.04K
Tue Sep  6 08:00:04	 6.05K
Tue Sep  6 08:00:05	 6.04K
Tue Sep  6 08:00:06	 6.05K


Why wouldn't it work in pmlogsummary?

tah,

Paul





More information about the pcp mailing list