pcp
[Top] [All Lists]

Using PCP to log sysstat metrics

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: Using PCP to log sysstat metrics
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Tue, 14 Apr 2015 13:04:19 +0300
Delivered-to: pcp@xxxxxxxxxxx
Organization: Red Hat
Reply-to: myllynen@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Hi,

there was some off-list discussion what it would require to use PCP to
collect the exact same metrics which sysstat collects by default on many
distributions with:

# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1

I wonder does anyone see any issues with a simple solution like this
which relies on sar2pcp to generate the list of the needed metrics:

# sar2pcp /var/log/sa/sa13 /tmp/sa13-pcp
# echo 'log mandatory on every 10 minutes {' > /etc/pcp/pmlogger/pcp-sa
# pminfo -a /tmp/sa13-pcp | sort >> /etc/pcp/pmlogger/pcp-sa
# echo '}' >> /etc/pcp/pmlogger/pcp-sa
# rm -f /tmp/sa13-pcp*
# echo 'LOCALHOSTNAME n n PCP_LOG_DIR/pmlogger/pcp-sa/LOCALHOSTNAME -r
-T24h10m -c config.pcp-sa' >> /etc/pcp/pmlogger/control
# chkconfig pmlogger on
# service pmlogger restart

Thanks,

-- 
Marko Myllynen

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