Visualizing PCP system performance data in Grafana on RHEL-10 using Valkey

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 10
  • Performance Co-Pilot(PCP)
  • Grafana
  • Valkey

Issue

  • How to plot the system performance data captured by PCP (Performance Co-Pilot) in Grafana using Valkey in RHEL-10 ?
  • How to monitor the system performance graphically in RHEL-10?
  • How to monitor the historical or live PCP performance data in Grafana ?

Resolution

1. Install PCP, grafana and valkey

# dnf install pcp-zeroconf grafana valkey

2. Start and enable the required services

# systemctl start pmcd pmlogger grafana-server pmproxy valkey
# systemctl enable pmcd pmlogger grafana-server pmproxy valkey

Once the services are started access the Grafana web UI from Content from localhost is not included.Content from localhost is not included.http://localhost:3000/.

  • Replace localhost with your machine IP to access Grafana web UI from a remote machine.

alt text

Enter the default username and password as admin. Choose skip to continue default password or change it as per your requirement.

3. Enable PCP Plugin

alt text

alt text

  • Search and select PCP Valkey
  • Enter the http://localhost:44322 URL under HTTP and click Save & test
  • You can add other PCP data sources as well such as PCP bpftrace and PCP Vector to visualise different metrics.

alt text

  • Open the Dashboards tab under Valkey datasource and Import PCP Valkey: Host Overview

alt text

  • Goto Home -> Dashboards and click on PCP Valkey: Host Overview

alt text

Additional Information:

To use PCP on RHEL-8 and RHEL-9 with Redis check Visualizing system performance data of PCP in Grafana

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.