pcp
[Top] [All Lists]

mmv metric does not show up in pmlogger archives

To: pcp@xxxxxxxxxxx
Subject: mmv metric does not show up in pmlogger archives
From: Rares Vernica <rvernica@xxxxxxxxx>
Date: Mon, 22 Feb 2016 17:05:39 -0800
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=cKuwKibYHFNcriHFyhVEQA5GfzwhwefFfiD6wXqzCj8=; b=Cjph1Xi+8cGG7uO349NS++JOHsonUmOifmJGjU3mnXRoqDIku+no/nHqabwrkF0POY 3PnU+ISsTdbPNvQlabXTLTMnooaBt7ty7sSc81jHJdQhOBbajQHtlQRicZPrN90HdvlW znzCp7zuQd1Yo7dqVdcgsbMrNvr1lfiwn1cD+Lelf4+Tdi28I/7+jvFgTUKndPpgGCuY ZlVcqtuIXaUEnJ/U/S9uM/SS6EBpYB0KyAbNdJ8qzPy9C3HFOkT2GlnpMYKFMj4cYc5I shjWpm8JGWBOqAhp3twrOkBP+rFslB2RgrOudQXwgtkdW4mxTyrVkiEBmhN1Poye/7T4 u1hg==
Hello,

I am probably doing something wrong, but I am not sure what. I defined an mmv metric and I am having trouble getting it to show up in the pmlogger archives. Here is what I have done.

The mmv metrics show up in pminfo and pmval:

$ pminfo -t mmv
mmv.acme.products.queuetime [Queued time while producing Acme products]
mmv.acme.products.time [Machine time spent producing Acme products]
mmv.acme.products.count [Acme factory product throughput]

$ pmval mmv.acme.products.queuetimeÂ

metric: Â Âmmv.acme.products.queuetime
host: Â Â Âbeaglebone-12
semantics: cumulative counter (converting to rate)
units: Â Â microsec (converting to time utilization)
samples: Â all

      Anvils        Rockets  ÂGiant_Rubber_Bands  Â
       Â0.0          0.0          0.0

I added the mmv metrics to config.default and I am using the config.default in the pmlogger control file:

$ cat /etc/pcp/pmlogger/config.default
...
# It is safe to make additions from here on ...
#

log advisory on default {
    mmv.iontouch
}

[access]
disallow .* : all;
disallow :* : all;
allow local:* : enquire;

$ cat /etc/pcp/pmlogger/controlÂ
# local primary logger
#
# (LOCALHOSTNAME is expanded to local: in the first column,
# and to `hostname` in the fourth (directory) column.)
#
LOCALHOSTNAME y  n PCP_LOG_DIR/pmlogger/LOCALHOSTNAME -r -T24h10m -c config.default

pmlogger is running fine:

$ pcp
Performance Co-Pilot configuration on beaglebone-12:

Âplatform: Linux beaglebone-12 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
Âhardware: 1 cpu, 3 disks, 1 node, 496MB RAM
Âtimezone: PST+8
Âservices: pmcd pmwebd
  Âpmcd: Version 3.10.4-1, 7 agents, 2 clients
  Âpmda: root pmcd proc xfs linux mmv jbd2
Âpmlogger: primary logger: /var/log/pcp/pmlogger/beaglebone-12/20160222.16.21

But I can't find the mmv metrics in any of the log files:

$ for f in /var/log/pcp/pmlogger/beaglebone-12/*.0; do pminfo -a $f mmv; doneÂ
Error: mmv: Unknown metric name
...

$ for f in /var/log/pcp/pmlogger/beaglebone-12/*.0; do pmval -a $f mmv.acme.products.queuetime; doneÂ
pmval: pmLookupName(mmv.acme.products.queuetime): Unknown metric name
...

Some hints would be greatly appreciated.

Thanks!
Rares
<Prev in Thread] Current Thread [Next in Thread>