pcp
[Top] [All Lists]

[Bug 1242463] RFE: provide a method to query set of metrics with aliases

To: pcp@xxxxxxxxxxx
Subject: [Bug 1242463] RFE: provide a method to query set of metrics with aliases
From: bugzilla@xxxxxxxxxx
Date: Wed, 15 Jul 2015 07:35:01 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <bug-1242463-355098@xxxxxxxxxxxxxxxxxxx>
References: <bug-1242463-355098@xxxxxxxxxxxxxxxxxxx>
https://bugzilla.redhat.com/show_bug.cgi?id=1242463



--- Comment #1 from Marko Myllynen <myllynen@xxxxxxxxxx> ---
I thought a bit more about this and actually this should be pretty simple to
implement after all. Initially I was thinking about extending pmdumptext or
such but that'd be cumbersome, using the Python PMAPI allows quickly writing
this kind of tool and then it's mostly a question of how to allow the user to
define metric sets to display.

For example, the following kind configuration file might be suitable (which
values would be used unless not overridden on command line):

# PCP options
[options]
interval=2sec
#host=
#archive=
#derived_commands_conf=/some/path

# These metrics are displayed as part of any set
[global]
metrics = kernel.uname.nodename

# These metrics are display if no metric set is defined
[default]
metrics = kernel.all.uptime

# Custom set
[myapp1]
metrics = kernel.all.cpu.wait.total, disk

# Custom set
[myapp2]
...


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=MNpvDa0Dj0&a=cc_unsubscribe

<Prev in Thread] Current Thread [Next in Thread>