PMDADOCKER(1)
π PMDADOCKER π β the docker performance metrics domain agent, bestie edition
okay so real quick, this is the manual for pmdadocker from the General Commands Manual section of PCP. yes it's a whole thing. let's get into it π«Ά
β¨ NAME β¨
pmdadocker β docker performance metrics domain agent (PMDA) π³
β¨ SYNOPSIS β¨
$PCP_PMDAS_DIR/docker/pmdadocker [-D debug] [-d domain] [-l logfile]
that's it. that's the whole invocation. she's lowkey simple π
β¨ DESCRIPTION β¨
so pmdadocker is a docker Performance Metrics Domain Agent (PMDA), and what she does is expose performance metrics as reported from the Docker Remote API. like, she's the bridge. the middlewoman. the girl in the group chat relaying everything the docker daemon said πΈ
here's the tea on the command line options:
-dβ okay bestie, LISTEN. it is absolutely crucial that the performance metrics domain number you put here is unique and consistent. like genuinely non-negotiable. what that means:domainshould be different for every single PMDA on one host, and the same domain number should be used for the same PMDA on all hosts. no cap. don't mix it up π-lβ where the log file lives. by default a log file nameddocker.loggets written in the current directory ofpmcd(1)whenpmdadockeris started, aka$PCP_LOG_DIR/pmcd. and if that log file can't be created or just isn't writable? output goes to standard error instead. she'll find a way π
Remote API metric requests are activated automatically and are fetched on a timer. this timer is represented as a by pmdadocker via the docker.control.timing. by default, pmdadocker will be set to fetch on a 1 second interval. obsessed with her consistency honestly β±οΈ
pmdadocker will iterate over three different docker remote API calls:
/containers/$ID/jsonβ container metrics regarding the current state of the container. such as PID, name, or if the container is running. the lil status report π/versionβ basic version metrics about the current docker daemon in use./containers/$ID/stats?stream=0β more in depth memory and cpu metrics of the container. the juicy stuff π₯
β¨ INSTALLATION β¨
if you want access to the names, help text and values for the docker performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/docker
# ./Install
and if you want to undo the installation (and remove both PMDAs β yes, both), do the following as root:
# cd $PCP_PMDAS_DIR/docker
# ./Remove
okay important: pmdadocker is launched by pmcd(1) and should never be executed directly. like, she has a manager, let her manager manage. the Install and Remove scripts notify pmcd(1) when the agent is installed or removed, so that part's handled for you π
β¨ FILES β¨
$PCP_PMCDCONF_PATHβ command line options used to launchpmdadocker$PCP_PMDAS_DIR/docker/helpβ default help text file for the docker metrics$PCP_PMDAS_DIR/docker/Installβ installation script for thepmdadockeragent$PCP_PMDAS_DIR/docker/Removeβ undo installation script for thepmdadockeragent$PCP_LOG_DIR/pmcd/docker.logβ default log file for error messages and other information frompmdadocker
β¨ PCP ENVIRONMENT β¨
so 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. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). iykyk π
β¨ DEBUGGING OPTIONS β¨
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although ngl the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. 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 pmdadocker are as follows:
appl1β report failure to fetch stats via http
that's the whole list. one (1) option. she's efficient π
β¨ SEE ALSO β¨
PCPIntro(1), pmcd(1), pcp.conf(5), pcp.env(5) and docker(1).
π cute sign-off: this page is from Performance Co-Pilot, source/version PCP, and it's page PMDADOCKER(1). go forth and monitor ur containers bestie, ily, mwah πβ¨π¦
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2017 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms