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

  1. Install the PCP package:

    sudo dnf install pcp
    
  2. Start the PMDA daemon:

    sudo systemctl start pmcd
    
  3. 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 PCP packages for monitoring applications

  1. Install the PCP packages for monitoring Apache:

    sudo dnf install pcp-pmda-apache
    
  2. Install the PCP packages for monitoring MySQL/MariaDB:

    sudo dnf install pcp-pmda-mysql
    
  3. Install the PCP packages for monitoring PostgreSQL:

    sudo dnf install pcp-pmda-postgresql
    
  4. Start 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.

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!