PMDANGINX(1)
β¨ PMDANGINX β¨
okay so bestie, welcome to the pmdanginx page β that's section 1 of the General Commands Manual, iykyk π
π NAME π
pmdanginx β it's the nginx performance metrics domain agent, aka the PMDA. Say it with me: Performance Metrics Domain Agent. Slay.
πΈ DESCRIPTION πΈ
So pmdanginx is a Performance Metrics Domain Agent (PMDA), and what it does is literally export performance metrics straight out of nginx(8) π¦
And what even is nginx(8)? Bestie. It's an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server. Main character energy fr fr π
π INSTALLATION π
Okay so this PMDA has one requirement, and it's non-negotiable: the nginx stub_status module has to be active and available at http://localhost/nginx_status. No stub_status, no vibes. π
To enable that module, the "server" section of your nginx.conf configuration file should contain exactly this:
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow ::1;
deny all;
}
β¨ Now let's verify the instrumentation is actually available. There are two checks β compile-time, then run-time:
# nginx -V 2>&1 | grep -o with-http_stub_status_module
# curl http://localhost/nginx_status
Then install the nginx PMDA by running the Install script as root:
# cd $PCP_PMDAS_DIR/nginx
# ./Install
And to uninstall, the following must be done as root too:
# cd $PCP_PMDAS_DIR/nginx
# ./Remove
π«Ά Heads up bestie:pmdanginxis launched bypmcd(1)and should never be executed directly. Like, ever. TheInstallandRemovescripts are the ones that notifypmcd(1)when the agent is installed or removed, so let them do their job. π
π FILES π
$PCP_PMDAS_DIR/nginx/nginx.confβ optional configuration file forpmdanginx$PCP_PMDAS_DIR/nginx/Installβ installation script for thepmdanginxagent$PCP_PMDAS_DIR/nginx/Removeβ undo installation script for thepmdanginxagent$PCP_LOG_DIR/pmcd/nginx.logβ default log file for error messages frompmdanginx
π§ 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). Periodt. π
β SEE ALSO β
PCPIntro(1), pmcd(1) and nginx(8) β go read those next, bestie, they're iconic π¦
This whole thing is brought to you by Performance Co-Pilot β that's PCP, the source, and it's the PMDANGINX(1) page, mwah π bye bestie, go watch your metrics β¨
π¦ where this page comes from
- arch rolling: pcp-pmda-nginx 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) 2013 Red Hat
- Copyright (c) 2013 Ryan Doyle
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms