pcp
[Top] [All Lists]

Re: [pcp] Pmchart - Multiple archives with multiple -a input

To: "Narendra Babu, Nandhita" <nandhita.narendra.babu@xxxxxxxxx>
Subject: Re: [pcp] Pmchart - Multiple archives with multiple -a input
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 16 May 2016 00:33:28 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5192D9F1A7351C4C8C307FF33726DDD50208A47F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <5192D9F1A7351C4C8C307FF33726DDD50208A47F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: AdGtYobZV9a3Wn6uQrGQqyNk0H2ToCY8juwW
Thread-topic: Pmchart - Multiple archives with multiple -a input
Hi Nandhita,

----- Original Message -----
> 
> 
> I am using PCP version 3.11.3. Is the multiple âa option no longer supported
> in pmchart?
> 

It's still supported.  When using multiple -a options, popup the Open View
dialog and the host/archive selector there should list each host separately
(it does here for me, anyway, with git master pcp).

> 
> I want to create png from multiple pm archives from different hosts. I have
> three archives:
> 
> Ordinal Hostname Archive Basename
> host1 pmlogger_io
> host1 pmlogger_vm_mp
> host2 pmlogger_main
> 

Is that from a mkaf(1) folio?  The patch below might be of use, it adds in
a --archive-folio option so that they can all be opened directly from the
folio, rather than listed separately.

diff --git a/src/pmchart/main.cpp b/src/pmchart/main.cpp
index f5ce81d..5e3dc32 100644
--- a/src/pmchart/main.cpp
+++ b/src/pmchart/main.cpp
@@ -42,6 +42,7 @@ static pmLongOptions longopts[] = {
     PMAPI_OPTIONS_HEADER("General options"),
     PMOPT_ALIGN,
     PMOPT_ARCHIVE,
+    PMOPT_ARCHIVE_FOLIO,
     PMOPT_DEBUG,
     PMOPT_HOST,
     PMOPT_HOSTSFILE,

> 
> My view file stat.view looks like this:
> 
> #kmchart
> version 1
> 
> chart style plot antialiasing off
> plot color #ffff00 metric disk.all.read
> chart style plot antialiasing off
> plot color #0000ff metric kernel.all.cpu.sys
> 
> 
> 
> pmchart -a pmlogger_vm_mp -a pmlogger_io -c stat.view
> 
> Error :
> 
> stat.view[11]
> Failed to plot metric "kernel.all.cpu.sys" for
> archive pmlogger_io_45:
> Unknown metric name
> 

Hmm, looks like kernel.all.cpu.sys is missing from one of the archives?  And
since no host specified for the plot, IIRC think it will use the first listed
host on the command line.  (or perhaps last)


> Any way to generate image file from multiple archives?
> 

You may be looking for the "host" keyword in the pmchart(1) view configuration
language? - allows an individual plot to be explicitly associated with a named
host.

cheers.

--
Nathan

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