pcp
[Top] [All Lists]

Fix pcp2graphite example

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: Fix pcp2graphite example
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Tue, 17 Nov 2015 12:10:58 +0200
Delivered-to: pcp@xxxxxxxxxxx
Organization: Red Hat
Reply-to: myllynen@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
The pcp2graphite -u example was not optimal, only ~two
out of 1000+ standard PCP metrics could be rescaled
using the units used in the example, use something more
widely applicable instead.

---
 src/pcp2graphite/pcp2graphite.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pcp2graphite/pcp2graphite.py b/src/pcp2graphite/pcp2graphite.py
index 455e2c6..f6cfe67 100644
--- a/src/pcp2graphite/pcp2graphite.py
+++ b/src/pcp2graphite/pcp2graphite.py
@@ -77,8 +77,8 @@ network.""")
         self.opts.pmSetLongOption("text-port", 1, 'P', '',
                                   "graphite plaintext port (usually 2003)")
         self.opts.pmSetLongOption("units", 1, 'u', '',
-                                  "rescale all metric units " +
-                                  "(e.g., \"mbytes/5 sec\")")
+                                  "rescale units " +
+                                  "(e.g., \"MB\", will omit incompatible 
units)")
         self.opts.pmSetLongOption("prefix", 1, 'm', '',
                                   "prefix for metric names (default \"pcp.\")")
         self.opts.pmSetLongOptionHelp()

Thanks,

-- 
Marko Myllynen

<Prev in Thread] Current Thread [Next in Thread>
  • Fix pcp2graphite example, Marko Myllynen <=