pcp
[Top] [All Lists]

Re: [pcp] Question about Performance Co-Pilot and Grafana

To: William_Staten@xxxxxxxxxxxxxxx, pcp@xxxxxxxxxxx
Subject: Re: [pcp] Question about Performance Co-Pilot and Grafana
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 5 Jan 2016 06:36:34 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <OF355DC515.3BCBDC1D-ON85257F30.005B4A08-85257F30.005BA0FA@xxxxxxxxxxxxxxx>
References: <OF355DC515.3BCBDC1D-ON85257F30.005B4A08-85257F30.005BA0FA@xxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
On 05/01/16 03:40, William_Staten@xxxxxxxxxxxxxxx wrote:
> I wanted to know where I could get support on creating graphs older than 
> 2 weeks or for a specific time frame (say from October 1, 2015 - 
> November 15, 2015) using pcp and the grafana that was installed with the 
> pcp rpm.

William,

Assuming a vanilla PCP install with pmlogger enabled (and possibly configured 
to ensure any locally important metrics beyond the defaults are being 
collected) and running on the system of interest (where pmcd is also running)) 
...

It is the -k option to pmlogger_daily that controls how long the PCP archives 
are kept, the default is 14 days.

pmlogger_daily is usually run by cron, so you'll need to add a -k <pick your 
number of days> to the pmlogger_daily line in /etc/cron.d/pcp-pmlogger

Note that my "assumptions" above need not apply, and in that case the change 
needs to be made on the system where pmlogger is being run.

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