PMDATRACE(1)
π PMDATRACE(1) π
okay bestie, welcome to the General Commands Manual section, we're talking pmdatrace today and honestly? it's iconic. grab a strawberry drink, this one's a whole vibe πβ¨
πΈ NAME πΈ
pmdatrace β application-level transaction performance metrics domain agent
like... it's a PMDA. it does transactions. it's that girl. π
π¦ SYNOPSIS π¦
$PCP_PMDAS_DIR/trace/pmdatrace [-D debug] [-d domain] [-l logfile] [-A
access] [-I port] [-M username] [-N buckets] [-T period] [-U units]
β¨ DESCRIPTION β¨
So pmdatrace is a Performance Metrics Domain Agent (PMDA), and what it does is export transaction performance metrics from application processes that use the pcp_trace library described over in pmdatrace(3). no cap, that's literally its whole job and it ate. π
Here's the lowdown on the command line options, one by one:
-dβ bestie, listen. It is absolutely crucial that the performance metrics domain number you put here is unique and consistent. Like, this is not a drill.domainshould be different for every single PMDA on one host, and the samedomainnumber should be used for the same PMDA on all hosts. consistency is the moment, periodt.-lβ where the log file lives. by default, a log file namedtrace.loggets written in the current directory ofpmcd(1)whenpmdatraceis started, which is to say$PCP_LOG_DIR/pmcd. If the log file can't be created or isn't writable, the output goes to the standard error instead. π-Aβ host-based access control forpmdatrace.accesshas to be either an allow or deny specification, using eitherallow:hostspec:maxconnsordisallow:hostspec, whereallowanddisalloware keywords,hostspecis a host specification that conforms to the format used by bothpmcd(1)andpmlogger(1), andmaxconnsis the max number of connections allowed from a givenhostspec. Using a maximum connections of zero means unlimited connections for the accompanyinghostspec. unlimited! she's generous π-Iβ talk topcp_traceclients via the given Internet port. you can also just set$PCP_TRACE_PORTin the environment to some valid port number instead (and heads up, using the-Ioption overrides that). The default port number is4323. π₯-Tβperioddefines the aggregation period used to compute the recent averages and extrema. It's specified as a time interval using the syntax described inPCPIntro(1)for the common-tPCP argument, e.g.30 secondsor1 min. The default is60 seconds.-Mβ the user account to run the agent under. 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 fr fr π-Nβ internally, the aggregation period gets divided into bucket divisions, and the rolling average is recomputed everyperiod/bucketseconds. for example, the defaults correspond to-T 60and-N 12, which means the average is recomputed every five seconds for a period covering the prior 60 seconds. math girlies rise π§-Uβ this one lets you configure the dimension and scale associated with the observation value metric.unitsis a comma-separated string of six integer values, and those are the space dimension, time dimension, count dimension, space scale, time scale, and count scale β respectively, in that exact order. The default dimension and scale isnone, which is equivalent to passing0,0,0,0,0,0as the argument to-U. The units associated with a metric are most easily viewed using the-d(metric description) option topminfo(1). and theInstallscript described below steps through this option quite explicitly, so it is recommended that theInstallscript be used for building up the units specification. let the script cook π©βπ³
Essentially β and this is the summary bestie β the exported metrics provide statistics on the time for completion of each transaction, plus an average count of transactions completed and watch points passed over a given time period. cute, useful, efficient. we love her. π«Ά
π INSTALLATION π
In order for a host to export the names, help text and values for the Trace performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/trace
# ./Install
If you want to undo the installation (noooo why would you π), do the following as root:
# cd $PCP_PMDAS_DIR/trace
# ./Remove
pmdatrace is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is installed or removed. so like, let the scripts handle the admin, you just vibe. π
π FILES π
$PCP_PMCDCONF_PATHβ command line options used to launchpmdatrace$PCP_PMDAS_DIR/trace/helpβ default help text file for the trace metrics$PCP_DEMOS_DIR/trace/*β example programs which use thepcp_tracelibrary$PCP_PMDAS_DIR/trace/Installβ installation script for thepmdatraceagent$PCP_PMDAS_DIR/trace/Removeβ undo installation script forpmdatrace$PCP_LOG_DIR/pmcd/trace.logβ default log file for error messages and other information frompmdatrace
π 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). config files are the blueprint, and we respect the blueprint. β¨
π 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. iykyk. π
Debugging options specific to pmdatrace are as follows:
appl0β authentication parsing, client changes, IPC, metric data and metadata refreshesappl1β raw data for rate metrics
π SEE ALSO π
PCPIntro(1), pmcd(1), pmtrace(1), PMAPI(3) and pmdatrace(3).
and that's the whole page bestie, you're basically a pmdatrace expert now β this was the Performance Co-Pilot edition from PCP, and yeah, it's a PMDATRACE(1) situation. go forth and export those transaction metrics, 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) 2012 Red Hat
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms