PMDALOGGER(1)
π PMDALOGGER β the pmdalogger manual page, but make it make sense
okay so bestie, welcome to pmdalogger(1) π it lives in the General Commands Manual section, and it's about to become your new fave. sit down, grab a strawberry π, let's go.
β¨ NAME β¨
pmdalogger β log file performance metrics domain agent (PMDA) π
πΈ SYNOPSIS πΈ
$PCP_PMDAS_DIR/logger/pmdalogger [-D debug] [-d domain] [-l logfile] [-m
memory] [-s interval] [-U username] [configfile]
π¦ DESCRIPTION π¦
pmdalogger is a configurable log file monitoring Performance Metrics Domain Agent, aka a PMDA. think of it like the -f option to tail(1) but make it β¨metricsβ¨ β it converts every new log line into a performance event. no cap, it was literally the first PMDA to go hard on event metrics, and those events get consumed by client tools like pmevent(1). iconic behavior honestly π
so the logger PMDA exports both:
- event-style metrics, reflecting timestamped event records for text logged to a file (or a whole set of files, or the output from a process) π₯
- the more orthodox sample-style metrics, like event counts and throughput size values π
the whole thing gets configured via a configfile that has one line for each source of events β file or process, your pick. that file is set up by the Install script, which we get into down in the INSTALLATION section. iykyk π
here's a quick rundown of the pmdalogger command line options:
-dβ the performance metrics domain number you specify here being unique and consistent is absolutely crucial, like genuinely non-negotiable.domainshould be different for every PMDA on the one host, and the samedomainnumber should be used for the same PMDA on all hosts. don't fumble this one π-lβ where the log file lives. by default, a log file namedlogger.loggets written in the current directory ofpmcd(1)whenpmdaloggeris started, i.e.$PCP_LOG_DIR/pmcd. and if the log file can't be created or isn't writable? output goes to standard error instead. she adapts πββοΈ-mβ limits the physical memory the PMDA uses to buffer event records, tomaxsizebytes. here's the tea: as log events arrive at the PMDA they have to be buffered until individual client tools request their next batch since their previous batch of events. the default maximum is 2 megabytes. remember that π-sβ sets the polling interval for detecting newly arrived log lines. it mirrors the same option from thetail(1)command. cute, consistent, we love to see it π«Ά-Uβ the user account under which to run the agent. the default is the unprivileged"pcp"account in current versions of PCP, but in older versions the superuser account ("root") was used by default. glow-up arc π
π INSTALLATION π
if you want access to the names, help text and values for the logger performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/logger
# ./Install
this is an interactive installation process, so it's gonna prompt you for each log file path to be monitored (or command to be run), a metric instance name to identify it, and whether access should be restricted (go peek at the -x option to pmevent(1) for further details π).
and if you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/logger
# ./Remove
β οΈ important bestie:pmdaloggeris launched bypmcd(1)and should never be executed directly. theInstallandRemovescripts notifypmcd(1)when the agent is installed or removed, so let them handle it, okay? don't do it manually, i'm begging π
π FILES π
$PCP_PMCDCONF_PATHβ command line options used to launchpmdalogger$PCP_PMDAS_DIR/logger/logger.confβ default configuration file for the logger metrics$PCP_PMDAS_DIR/logger/helpβ default help text file for the logger metrics$PCP_PMDAS_DIR/logger/Installβ installation script for thepmdaloggeragent$PCP_PMDAS_DIR/logger/Removeβ undo installation script for thepmdaloggeragent$PCP_LOG_DIR/pmcd/logger.logβ default log file for error messages and other information frompmdalogger
π 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. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). so much flexibility, we're obsessed π
π₯ 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 pmdalogger are as follows:
appl0β configfile processing and PMNS setupappl1β loading event data from the log filesappl2β interaction withpmcd(1).
β SEE ALSO β
PCPIntro(1), pmevent(1), pmcd(1), tail(1), pcp.conf(5) and pcp.env(5).
and that's the whole page, bestie!! this one's from Performance Co-Pilot, tagged PCP, and it's the PMDALOGGER(1) page in all its glory π
β¨ go forth and monitor those logs, you absolute main character ππ¦
π¦ 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) 2014 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms