PMDALIBVIRT(1)
β¨ PMDALIBVIRT β¨
okay bestie, welcome to pmdalibvirt(1) β a whole General Commands Manual page and we're gonna read it together, no cap π
πΈ NAME πΈ
pmdalibvirt β it's the libvirt PMDA, and yes, that's the whole vibe of the name. short, sweet, iconic.
π¦ SYNOPSIS π¦
lowkey there isn't a synopsis block on this page, but the name up top is the whole synopsis. it's giving minimalism. β¨
π DESCRIPTION π
So pmdalibvirt is a Performance Metrics Domain Agent (PMDA, iykyk) and what it does is extract live performance data from the libvirt hypervisor and its domains (aka the VMs). live data! real time! main character energy fr fr.
And if you wanna know what each individual metric actually means, you gotta go read the libvirt documentation, because that's where the detailed description of every metric lives. not here. we're just the delivery service π«Ά
π INSTALLATION π
okay so first things first: pmdalibvirt reads an optional ini-style configuration file, and that file is
$PCP_PMDAS_DIR/libvirt/libvirt.conf
Inside that file, in its [pmda] section, you can override the values for these PMDA options:
useruribacking
And the defaults, if you don't say anything? They are, in order:
rootqemu:///systemFalse
periodt. those are the values used for those options respectively. π
Now, the backing setting β she's the glow-up option. You use it to expand block device information to cover backing chains, but only with recent libvirt versions. newer libvirt = backing chains unlocked π₯
Then there's the old API setting, and this one's for the environments where the recent libvirt API additions are just... not available (think RHEL 6 / libvirt-0.10.2, the elders π). You can use it to get some of the metrics that the newer API gives you. And regardless of which API version you're on β no guest agent is needed for the metrics. not a single one. slay.
β οΈ heads up bestie: using a non-root user typically requires libvirt side configuration too!! Please refer to the libvirt documentation for further details on this. don't come for me, come for the docs π
Once all the needed setup is ready, you can test the connection and install the PMDA to enable access to the names and values for the libvirt performance metrics. To install, do the following as root:
# cd $PCP_PMDAS_DIR/libvirt
# ./connect
# ./Install
And to uninstall, do the following as root:
# cd $PCP_PMDAS_DIR/libvirt
# ./Remove
pmdalibvirt is launched by pmcd(1) and should never be executed directly. Like, never ever. That's not her job, that's not her moment. π€
The Install and Remove scripts are the ones who notify pmcd(1) when the agent is installed or removed. they're the group chat admins basically.
π FILES π
$PCP_PMDAS_DIR/libvirt/libvirt.confconfiguration file for thepmdalibvirtagent$PCP_PMDAS_DIR/libvirt/connectconnection test helper using thepmdalibvirtagent configuration$PCP_PMDAS_DIR/libvirt/Installinstallation script for thepmdalibvirtagent$PCP_PMDAS_DIR/libvirt/Removeundo installation script for thepmdalibvirtagent$PCP_LOG_DIR/pmcd/libvirt.logdefault log file for messages from thepmdalibvirtagent
π PCP ENVIRONMENT π
Environment variables with the prefix PCP_ are used to parameterize the file and directory names that PCP uses. Every time you install, the file /etc/pcp.conf contains the local values for these variables.
And plot twist: the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). options on options on options, we love to see it β¨
π SEE ALSO π
PCPIntro(1), pmcd(1), virsh(1) and libvirtd(8). go read those next, bestie, they're all in the same friend group π«Ά
and that's the whole page!! πβ¨ππ¦πΈπ π«Ά
this absolute icon of a manual page comes from Performance Co-Pilot, and it's the PCP flavor of PMDALIBVIRT(1). mwah. go forth and monitor your hypervisor. ππ₯π
π¦ where this page comes from
- arch rolling: pcp-pmda-libvirt 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) 2016,2024 Marko Myllynen <myllynen@redhat.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms