How to install further PMDA's for PCP?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (RHEL), all versions
  • Performance Co-Pilot (PCP)
  • Performance Domain Agents (PMDA)'s which are not installed per default

Issue

  • How to use a non-default PMDA with PCP?
  • I have installed PCP but I want to view and collect performance statistics with a plugin which is not enabled by default.
  • How to monitor apache or postgresql or netfilter or similar with PCP?

Resolution

To install a non-default PMDA, you must run the PMDA's installer.

For example, the netfilter PMDA is not installed by default:

# pminfo | grep netfilter | wc -l
0

Change to the PMDA's directory and run its installer:

# cd /var/lib/pcp/pmdas/netfilter
# ./Install 
You will need to choose an appropriate configuration for installation of
the "netfilter" Performance Metrics Domain Agent (PMDA).

  collector     collect performance statistics on this system
  monitor       allow this system to monitor local and/or remote systems
  both          collector and monitor configuration for this system

Please enter c(ollector) or m(onitor) or b(oth) [b] 

Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check netfilter metrics have appeared ... 2 warnings, 2 metrics and 0 values

The PMDA is now collecting:

# pminfo | grep netfilter
netfilter.ip_conntrack_count
netfilter.ip_conntrack_max

NOTE: Some non-default PMDAs do not log by default, their stats are only tracked in realtime by PMCD. You will need to edit pmlogger configuration so that data from the new PMDAs is saved. Please refer to the following article:

How can I customize the Performance Co-Pilot logging configuration

See Also

SBR
Components

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.