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.
Before we proceed, make sure your system is up-to-date:
sudo dnf update
Install the PCP package:
sudo dnf install pcp
Start the PMDA daemon:
sudo systemctl start pmcd
Check the status of the PMDA daemon:
pmcd -l
If 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 the PCP packages for monitoring Apache:
sudo dnf install pcp-pmda-apache
Install the PCP packages for monitoring MySQL/MariaDB:
sudo dnf install pcp-pmda-mysql
Install the PCP packages for monitoring PostgreSQL:
sudo dnf install pcp-pmda-postgresql
Start the PMDA daemon again to load the new data sources:
sudo systemctl restart pmcd
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.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!