pcp
[Top] [All Lists]

Pmchart - Multiple archives with multiple -a input

To: "'pcp@xxxxxxxxxxx'" <pcp@xxxxxxxxxxx>
Subject: Pmchart - Multiple archives with multiple -a input
From: "Narendra Babu, Nandhita" <nandhita.narendra.babu@xxxxxxxxx>
Date: Fri, 13 May 2016 22:27:19 +0000
Accept-language: en-US
Delivered-to: pcp@xxxxxxxxxxx
Thread-index: AdGtYobZV9a3Wn6uQrGQqyNk0H2ToA==
Thread-topic: Pmchart - Multiple archives with multiple -a input

Hi All,

 

I am using PCP version 3.11.3. Is the multiple –a option no longer supported in pmchart?

 

PMCHART man page says:

-a   Multiple -a options can be presented, and the resulting list of sets of archives is used for sourcing metric values.

 

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

   

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

 

Metrics:

pmdumptext kernel.all.cpu.sys -a pmlogger_vm_mp_45 | head -3

Mon May  9 18:21:03     ?

Mon May  9 18:21:04     ?

Mon May  9 18:21:05     30.000

pmdumptext disk.all.read -a pmlogger_io_45 | head -3

Mon May  9 19:31:02     ?

Mon May  9 19:31:03     ?

Mon May  9 19:31:04     780032.000

 

 

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

 

I was able to merge the pmarchives  (pmlogger_vm_mp, pmlogger_io)  with pmlogextract and create png from that.

But eventually I want to be able to create a png with archives pmlogger_vm_mp and pmlogger_main – For this I cannot user pmlogextract because of different host names. Something like this: pmchart -a pmlogger_vm_mp -a pmlogger_main -c main.view -W -O-0 -o vmstat_main.png -v 720 -s 720 -t 10

 

Any way to generate image file from multiple archives?

 

Thanks,

Nandhita

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