On 07/04/2015 06:48 AM, Paul V Novarese wrote:
hi container fans,
I am trying to follow along with http://www.pcp.io/docs/lab.containers.html
I built 3.10.6-1 from git after having trouble with 3.10.4-1 (in the latest
fedora 22 repository)
I am pretty sure I have gotten this working in the past but I don't seem to
remember what I've done. The pmdaroot daemon is running but pminfo, pmchart,
etc all give me a container not found error.
[root@gyarados ~]# docker ps
CONTAINER ID IMAGE COMMAND
CREATED STATUS PORTS NAMES
334cfa0bba29 ubuntu:latest "/bin/sh -c 'while t 22 minutes
ago Up 22 minutes lonely_babbage
[root@gyarados ~]# pcp
Performance Co-Pilot configuration on gyarados:
platform: Linux gyarados 4.0.5-300.fc22.x86_64 #1 SMP Mon Jun 8 16:15:26 UTC
2015 x86_64
hardware: 4 cpus, 3 disks, 1 node, 12011MB RAM
timezone: CDT+5
services: pmcd
pmcd: Version 3.10.6-1, 7 agents
pmda: root pmcd proc xfs linux mmv jbd2
[root@gyarados ~]# pminfo -t --fetch --container lonely_babbage
cgroup.memory.stat.cache proc.psinfo.rss pmcd.hostname
cgroup.memory.stat.cache [Number of bytes of page cache memory]
Error: Container not found
proc.psinfo.rss [resident set size (i.e. physical memory) of the process]
Error: Container not found
pmcd.hostname [local hostname]
value "gyarados"
Hi Paul, good to see you've landed safely :)
I'm not seeing these "container not found" errors - I'm running latest
pcp-3.10.6 on f22, with two containers running named pcp-collector and
pcp-pmlogger (see below). Do you still get the same error if you use the
container ID rather than the name? i.e.
# pminfo -t --fetch --container 334cfa0bba29 \
cgroup.memory.stat.cache proc.psinfo.rss pmcd.hostname
Here's my output for the two containers mentioned above :
[mgoodwin@goblin ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
d0454844f478 pcp-pmlogger:latest "pmlogger start" 45 hours ago
Up 45 hours pcp-pmlogger
ad618da9db3e pcp-collector:latest "pmcd start" 45 hours ago
Up 45 hours pcp-collector
[mgoodwin@goblin ~]$ pminfo -t --fetch --container pcp-pmlogger
cgroup.memory.stat.cache proc.psinfo.rss pmcd.hostname
cgroup.memory.stat.cache [Number of bytes of page cache memory]
No value(s) available!
proc.psinfo.rss [resident set size (i.e. physical memory) of the process]
inst [14319 or "014319 /usr/libexec/pcp/bin/pmpause"] value 2112
inst [22366 or "022366 /usr/libexec/pcp/bin/pmlogger -P -r -T24h10m -c
config.default -m pmlogger_check 20150706.00.25"] value 4008
pmcd.hostname [local hostname]
value "goblin"
[mgoodwin@goblin ~]$ pminfo -t --fetch --container pcp-collector
cgroup.memory.stat.cache proc.psinfo.rss pmcd.hostname
cgroup.memory.stat.cache [Number of bytes of page cache memory]
No value(s) available!
proc.psinfo.rss [resident set size (i.e. physical memory) of the process]
inst [14122 or "014122 /usr/libexec/pcp/bin/pmpause"] value 2096
inst [14190 or "014190 /usr/libexec/pcp/bin/pmcd -A"] value 3760
inst [14192 or "014192 /var/lib/pcp/pmdas/root/pmdaroot"] value 3540
inst [14193 or "014193 /var/lib/pcp/pmdas/proc/pmdaproc -d 3"] value 4028
inst [14194 or "014194 /var/lib/pcp/pmdas/xfs/pmdaxfs -d 11"] value 3336
inst [14195 or "014195 /var/lib/pcp/pmdas/linux/pmdalinux"] value 3720
pmcd.hostname [local hostname]
value "goblin"
|