https://bugzilla.redhat.com/show_bug.cgi?id=1345821
Bug ID: 1345821
Summary: pmlogger records unrequested instances
Product: Fedora
Version: 24
Component: pcp
Assignee: nathans@xxxxxxxxxx
Reporter: myllynen@xxxxxxxxxx
QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
pcp@xxxxxxxxxxx, scox@xxxxxxxxxx
Description of problem:
[root@localhost ~]# rm -f test*
[root@localhost ~]# cat conf
log mandatory on 1 sec {
kernel.all.load [ "1 minute" ]
}
[root@localhost ~]# pmlogger -s 2 -c ./conf test
[root@localhost ~]# pmval -a test kernel.all.load
metric: kernel.all.load
archive: test
host: localhost.localdomain
start: Mon Jun 13 12:05:40 2016
end: Mon Jun 13 12:05:41 2016
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
12:05:40.596 No values available
1 minute 5 minute 15 minute
12:05:41.596 0.0 ? ?
[root@localhost ~]# pmdumplog -a test
Log Label (Log Format Version 2)
Performance metrics from host localhost.localdomain
commencing Mon Jun 13 12:05:40.596 2016
ending Mon Jun 13 12:05:41.616 2016
Descriptions for Metrics in the Log ...
PMID: 60.2.0 (kernel.all.load)
Data Type: float InDom: 60.2 0xf000002
Semantics: instant Units: none
PMID: 2.3.2 (pmcd.pmlogger.archive)
Data Type: string InDom: 2.1 0x800001
Semantics: discrete Units: none
PMID: 2.3.0 (pmcd.pmlogger.port)
Data Type: 32-bit unsigned int InDom: 2.1 0x800001
Semantics: discrete Units: none
PMID: 2.3.3 (pmcd.pmlogger.host)
Data Type: string InDom: 2.1 0x800001
Semantics: discrete Units: none
Instance Domains in the Log ...
InDom: 60.2
12:05:40.616 3 instances
1 or "1 minute"
5 or "5 minute"
15 or "15 minute"
InDom: 2.1
12:05:40.596 1 instances
2907 or "2907"
Temporal Index
Log Vol end(meta) end(log)
12:05:40.596 0 132 132
12:05:40.616 0 350 244
12:05:41.616 0 485 292
[112 bytes]
12:05:40.596 2.3.3 (pmcd.pmlogger.host): inst [2907 or "2907"] value
"localhost"
2.3.0 (pmcd.pmlogger.port): inst [2907 or "2907"] value 4330
2.3.2 (pmcd.pmlogger.archive): inst [2907 or "2907"] value
"/root/test"
[48 bytes]
12:05:40.616 60.2.0 (kernel.all.load): inst [1 or "1 minute"] value 0
[48 bytes]
12:05:41.616 60.2.0 (kernel.all.load): inst [1 or "1 minute"] value 0
[root@localhost ~]#
This is more problem e.g. with proc metrics when there might be hundreds of
unrequested instances included (makes harder to use tools like pmrep(1) which
do not allow specifying instances and can theoretically be seen also a
confidentiality issue, i.e., when trying to record only one specific process
information about all running processes is being added to the archive).
The same goes for pmlogextract(1).
Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=rIVkdvZa2x&a=cc_unsubscribe
|