PMDABPFTRACE(1)
π PMDABPFTRACE(1) π
okay bestie, welcome to the pmdabpftrace manual page (it's a General Commands Manual thing, and yes you're in the right place π
)
β¨ NAME β¨
pmdabpftrace β the bpftrace PMDA. that's it, that's the name, short and iconic π
π¦ DESCRIPTION π¦
so pmdabpftrace is a Performance Co-Pilot (PCP) Performance Metrics Domain Agent (PMDA), and its whole ~thing~ is that it exports metrics from bpftrace(8) scripts. that's the job. that's the vibe. no cap. π«Ά
π CONFIGURATION π
pmdabpftrace reads an optional ini-style configuration file, and she lives here:
$PCP_PMDAS_DIR/bpftrace/bpftrace.conf
this file can contain a [bpftrace] section and a [dynamic_scripts] section. and listen β if you turn on the dynamic scripts functionality, pls pls pls go read https://pcp.io/docs/lab.auth.html on how to set up authentication. this is highly recommended, because otherwise literally anyone could run any bpftrace(8) script as root π that's not a vibe, that's a yikes.
π the [bpftrace] section π
it specifies values for these settings (defaults are in the parentheses, no secrets here):
bpftrace_path(bpftrace) β the path to thebpftrace(8) executable. where's the girl at, basically πscript_expiry_time(60) β unnamed scripts get removed after this period of time, and we're talking seconds, in case there's been no requests for their values. ghosted = expired, periodt.max_throughput(2097152) β the maximum throughput of bpftrace scripts, in bytes. big number, big energy π₯
πΈ the [dynamic_scripts] section πΈ
same deal, values for these settings (defaults again in the parentheses):
enabled(false) β a boolean value that says whether a script should be started on demand, by executingpmStore(3)bpftrace.control.register. this feature needs to be enabled for the PCP bpftrace datasource in grafana-pcp. iykyk.auth_enabled(true) β a boolean value saying whether authentication is required or not. please see the note above about authentication setup π (yes, the root one. that one.)allowed_users(root) β a comma-separated list of usernames who are allowed to registerbpftrace(8) scripts. the guest list, bestie. keep it tight π
π INSTALLATION π
to install, the following must be done as root:
# cd $PCP_PMDAS_DIR/bpftrace
# ./Install
to uninstall, also as root:
# cd $PCP_PMDAS_DIR/bpftrace
# ./Remove
and a lil PSA: pmdabpftrace is launched by pmcd(1) and should never be executed directly, okay? don't do it. she's got a manager. the Install and Remove scripts notify pmcd(1) when the agent is installed or removed, so the whole thing stays coordinated π
π FILES π
$PCP_PMDAS_DIR/bpftrace/bpftrace.confβ configuration file for thepmdabpftraceagent$PCP_PMDAS_DIR/bpftrace/Installβ installation script for thepmdabpftraceagent$PCP_PMDAS_DIR/bpftrace/Removeβ undo installation script for thepmdabpftraceagent$PCP_LOG_DIR/pmcd/bpftrace.logβ default log file for messages from thepmdabpftraceagent
quick note bestie: the usual/default value for$PCP_PMDAS_DIRis/var/lib/pcp/pmdasand the default for$PCP_LOG_DIRis/var/log/pcp, but these settings are platform dependent, so check before you assume π
π 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). iconic behaviour fr fr β¨
π SEE ALSO π
PCPIntro(1), pmcd(1) and bpftrace(8).
and that's the whole page, bestie π§ this was Performance Co-Pilot, PCP, and the page is PMDABPFTRACE(1) β mwah, go slay some metrics πβ¨π
π¦ where this page comes from
- arch rolling: pcp-pmda-bpftrace 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-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.1.0-6.fc44 Β· 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 questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2019 Red Hat. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms