PMDAMONGODB(1)
π
PMDAMONGODB(1) β the pmdamongodb page, but make it make sense
okay bestie, sit down, hydrate, because we're talking about pmdamongodb β a manual page from the General Commands Manual section, and it's literally the group chat between your MongoDB server and Performance Co-Pilot. no cap. π¦
β¨ NAME β¨
pmdamongodb β MongoDB database metrics. that's it, that's the whole vibe check. π
πΈ DESCRIPTION πΈ
so pmdamongodb is a Performance Co-Pilot (PCP) Performance Metrics Domain Agent (PMDA) β say that five times fast, I dare you β and what it does is extract live performance data from a running MongoDB database server. like, it's the nosy bestie who reads your server's diary in real time and reports back with receipts. π₯
π CONFIGURATION π
first things first, bestie: pmdamongodb requires installation of the pymongo support packages β that's a general purpose Python module for querying MongoDB. no pymongo, no metrics. periodt.
next up, pmdamongodb reads an optional ini-style configuration file:
$PCP_PMDAS_DIR/mongodb/mongodb.conf
and rn this file allows for two sections: one for configuring the MongoDB socket connection, and the other for authentication. two sections, two moods, both iconic. π
π«Ά [connection]
host(localhost) β connect to the MongoDB socket on the given hostname. default is just chillin' onlocalhost, home sweet home.port(27017) β connect to the MongoDB socket on the given port. default port is27017, the classic.
π [authentication]
username(empty) β username to connect to the database. default is empty, so if you need it, go fill it in.password(empty) β password to connect to the database. also empty by default, keep it secret, keep it safe. π
π INSTALLATION π
to install, the following must be done as root:
# cd $PCP_PMDAS_DIR/mongodb
# ./Install
to uninstall, the following must be done as root:
# cd $PCP_PMDAS_DIR/mongodb
# ./Remove
β οΈ important note, bestie:pmdamongodbis launched bypmcd(1)and should never be executed directly. like, do not talk to it directly, it goes through its people. theInstallandRemovescripts notifypmcd(1)when the agent is installed or removed, so everybody stays in the loop. π
π¦ FILES π¦
$PCP_PMDAS_DIR/mongodb/mongodb.confβ configuration file for thepmdamongodbagent.$PCP_PMDAS_DIR/mongodb/Installβ installation script for thepmdamongodbagent.$PCP_PMDAS_DIR/mongodb/Removeβ undo installation script for thepmdamongodbagent.$PCP_LOG_DIR/pmcd/mongodb.logβ default log file for messages from thepmdamongodbagent.
and just so you know, the usual/default value for $PCP_PMDAS_DIR is /var/lib/pcp/pmdas and the default for $PCP_LOG_DIR is /var/log/pcp β but these settings are platform dependent, so don't come for me if your paths are doing their own thing. π
β 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 plot twist: the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). iykyk. π
π SEE ALSO π
PCPIntro(1) and pmcd(1). go read those next, they're the supporting cast and they ate. π
okay that's the whole page, you're officially educated π this was the Performance Co-Pilot (PCP) PMDAMONGODB(1) situation, brought to you with love and zero skipped details. go forth and monitor those databases, 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
- 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) 2021 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