[[feature-pcp]]= PCP MetricsIf available, Cockpit uses the https://pcp.io/[Performance Co-Pilot]framework to gather metrics data about the system. This data is used todisplay the history graphs on the "Metrics and history" page. Cockpitcan use the PCP logging feature to display archived data about thesystem from a different point in time. If PCP is not available, thenCockpit gathers the metrics data itself, but archival features are notavailable.Whether or not metrics are archived depends on whether thehttps://linux.die.net/man/1/pmlogger[`+pmlogger.service+`] systemd unitis running or not. The "Enable PCP metrics collector" button on theMetrics page will enable and start this service.To see similar metrics data from the command line, you can use toolslike https://linux.die.net/man/1/pmstat[`+pmstat+`] orhttps://linux.die.net/man/1/pminfo[`+pminfo+`]:....$ pmstat@ Sat Sep 26 15:30:10 2015loadavg memory swap io system cpu1 min swpd free buff cache pi po bi bo in cs us sy id4.19 0 20710m 605148 6450m 0 0 0 2548 5688 14K 19 3 76.......These metrics can also be exposed to other machines on a TCP port withhttps://linux.die.net/man/1/pmproxy[pmproxy] andhttps://redis.io/[Redis] or https://valkey.io/[Valkey]:....systemctl enable --now redis pmproxy# if you use firewalld, open port 44322:firewall-cmd --permanent --add-service pmproxyfirewall-cmd --reload....This allows you to gather and visualize PCP metrics from multiplemachines with https://grafana.com/[Grafana] and thehttps://grafana-pcp.readthedocs.io[PCP Grafana plugin].