Bug 1327263 - pmlc does not allow enabling multiple metrics
Summary: pmlc does not allow enabling multiple metrics
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-14 15:39 UTC by Marko Myllynen
Modified: 2016-05-17 13:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-17 13:52:17 UTC
Type: Bug


Attachments (Terms of Use)

Description Marko Myllynen 2016-04-14 15:39:36 UTC
Description of problem:
From pmlc(1):

   [ log ] mandatory on interval metriclist
       This  form of the log command turns on logging for the metrics (and
       any instances) in metriclist.  interval  specifies  how  often  the
       specified  metrics/instances should be logged.  once indicates that

However, while this works:

# echo log mandatory on every 10sec proc.io.wchar | pmlc -P

These fail:

# echo log mandatory on every 10sec proc.io.wchar proc.io.rchar | pmlc -P
# echo log mandatory on every 10sec $(pminfo proc | tr '\n' ' ') | pmlc -P

Comment 1 Marko Myllynen 2016-04-14 15:44:35 UTC
(In reply to Marko Myllynen from comment #0)
> 
> These fail:
> 
> # echo log mandatory on every 10sec proc.io.wchar proc.io.rchar | pmlc -P
> # echo log mandatory on every 10sec $(pminfo proc | tr '\n' ' ') | pmlc -P

Obviously it'd be nice if this would also work:

# echo log mandatory on every 10sec proc | pmlc -P

Comment 2 Marko Myllynen 2016-05-17 13:52:17 UTC
When reading the pmlc(1) man page again, we notice this is the correct form:

# echo log mandatory on every 10sec { proc.io.wchar proc.io.rchar } | pmlc -P

Closing.


Note You need to log in before you can comment on or make changes to this bug.