PMDAROOT(1)

πŸ’– PMDAROOT πŸ’–

okay bestie, gather round, because this is pmdaroot from the General Commands Manual section and she is that girl β€” a privileged PMCD helper performance metrics domain agent, no cap. πŸŽ€


✨ NAME ✨

pmdaroot β€” a privileged PMCD helper performance metrics domain agent πŸ¦‹


✨ SYNOPSIS ✨

$PCP_PMDAS_DIR/root/pmdaroot [-D debug] [-d domain] [-l logfile] [-s sockname]

✨ DESCRIPTION ✨

pmdaroot is a special Performance Metrics Domain Agent (PMDA) which cooperates closely with pmcd(1) and other PMDAs to provide limited privileged services to these unprivileged processes. it's giving backstage pass energy fr fr πŸ’…

In this role it is used to discover operating system containers running on the local host. it also enables access to performance data from within those containers by other PMDAs running on the bare-metal host, using the pmdaRootConnect(3) and the associated namespace interfaces. iconic behavior honestly ✨

Like all other PMDAs, it also exports performance metrics from the domain it controls. Currently, this is limited to information about the containers on the local system; currently Docker and LXC containers can be detected. πŸ³πŸ“¦

If a non-default Docker parent-cgroup name is being used, this value can be indicated to pmdaroot through addition of a $PCP_SYSTEMD_CGROUP variable in /etc/pcp.conf. noted, bestie 🫢

  • -d β€” okay so this one is absolutely crucial: the performance metrics domain number specified here must be unique and consistent. That is, domain should be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. do not play with this one, periodt. πŸ’€
  • -l β€” location of the log file. By default, a log file named root.log is written in the current directory of pmcd(1) when pmdaroot is started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error instead. 😭
  • -s β€” location of the unix(7) domain socket for communication with clients seeking privileged operations. By default, a socket file named $PCP_TMP_DIR/pmcd/root.socket is used. πŸ”Œ

✨ INSTALLATION ✨

Access to the names, help text and values for the kernel performance metrics is available by default β€” unlike most other agents, no action is required to enable them and they should not be removed. she comes pre-installed, she's low maintenance, she's the moment. πŸ‘‘πŸŒΈ


✨ FILES ✨

  • $PCP_PMDAS_DIR/root/help β€” default help text file for metrics exported by the root PMDA. πŸ“–
  • $PCP_LOG_DIR/pmcd/root.log β€” default log file for error messages and other information from the root PMDA. πŸ“
  • $PCP_VAR_DIR/pmcd/root.socket β€” default socket file for communication with root PMDA clients. πŸ”Œ

✨ PCP ENVIRONMENT ✨

Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). 🌈


✨ DEBUGGING OPTIONS ✨

The -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. ngl bestie, this is dev territory 🧚 debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning.

Debugging options specific to pmdaroot are as follows:

  • appl0 β€” interactions with pmcd(1) 🫱
  • appl1 β€” PMDA startup processing πŸš€

✨ SEE ALSO ✨

PCPIntro(1), pmcd(1), PMDA(3), pmdaRootConnect(3), pcp.conf(5) and unix(7). go read them, they're all slay πŸ’œ


and that's the whole vibe check, bestie β€” this page came to you courtesy of Performance Co-Pilot, a.k.a. PCP, filed under PMDAROOT(1) because she is the moment. mwah πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from