Installing Performance Co-Pilot on Fedora Server
Performance Co-Pilot (PCP) is a system performance analysis toolkit that provides a unified view of performance data across multiple domains.
In this tutorial, we will guide you through the process of installing PCP on a latest version of Fedora Server. We assume that you have root access to the machine.
Prerequisites
Before we proceed, make sure your system is up-to-date:
sudo dnf update
Install PCP
Install the PCP package:
sudo dnf install pcpStart the PMDA daemon:
sudo systemctl start pmcdCheck the status of the PMDA daemon:
pmcd -lIf the output shows that there are no PMDAs, that means the daemon is running but there are no data sources. To add data sources, we need to install the relevant packages.
Install PCP packages for monitoring applications
Install the PCP packages for monitoring Apache:
sudo dnf install pcp-pmda-apacheInstall the PCP packages for monitoring MySQL/MariaDB:
sudo dnf install pcp-pmda-mysqlInstall the PCP packages for monitoring PostgreSQL:
sudo dnf install pcp-pmda-postgresqlStart the PMDA daemon again to load the new data sources:
sudo systemctl restart pmcd
Monitoring applications with PCP
To view performance metrics for a specific application, use the pminfo command. For example, to view Apache metrics:
pminfo apache.requests
To view MySQL/MariaDB metrics:
pminfo mysql.ping
To view PostgreSQL metrics:
pminfo postgresql.database_size
For more information on PCP and its capabilities, check out the official documentation.