PMDABIND2(1)
β¨ PMDABIND2 β¨
okay bestie, welcome to pmdabind2 β it's a BIND performance metrics domain agent (a PMDA, for those in the know), and it lives in the General Commands Manual section 1. yes, the whole manual name is in the title, we're doing this properly π
πΈ NAME πΈ
pmdabind2 β the BIND performance metrics domain agent, aka the PMDA that gets you all the BIND stats. it's giving observability. it's giving data. π¦
β¨ DESCRIPTION β¨
so basically this PMDA extracts performance data from BIND (Berkeley Internet Name Domain, iconic name honestly). it lets you collect most of the statistics metrics from a Bind server version 9 or later, and that includes:
- overall memory statistics π§
- overall per-query statistics β general queries, EDNS/truncated responses, Update/Notify/AXFR/IXFR messages π
- overall error statistics β Rejected, SERVFAIL, Update/XFR failures β¦ the whole sad list π
- overall statistics per transport protocol, EDNS and per version of IP protocol π
- resolver statistics β successes, errors, round-trip times in several ranges β±οΈ
- detailed per-socket statistics with respect to the transport protocol and IP version, including errors π
- detailed per-file-descriptor statistics, including errors π
ngl the PMDA does per-second collection of the whole data set (148 metrics on the test environment) and it's lowkey so modest about it β 2% CPU usage on Intel i7-4700MQ @2.4 GHz, cca 30 MB RAM. queen behavior, honestly. π
and here's the cute part: if more than 1 requests/sec is performed, the memoized values are used so that the statistics interface of the Bind server does not get overloaded. protective. considerate. we stan. π«Ά
π INSTALLATION π
first things first, bestie: configure BIND to export XML statistics via its REST interface. this requires BIND configuration to enable statistics exporting locally (at least).
statistics-channels {
inet 127.0.0.1 port 8080 allow { 127.0.0.1; };
}
options { zone-statistics yes; }
# ./Install
the hostname (localhost), the port (8080 above) and other configuration information must be specified in both the BIND configuration file as well as the $PCP_PMDAS_DIR/bind2/bind2.conf file. both. not one. both. π
# cd $PCP_PMDAS_DIR/bind2
# [ edit bind2.conf ]
host=localhost.localdomain:8080
once this is setup, you can access the names and values for the bind2 performance metrics by doing the following as root:
# cd $PCP_PMDAS_DIR/bind2
# ./Install
to uninstall, the following must be done as root:
# cd $PCP_PMDAS_DIR/bind2
# ./Remove
okay so important lore: pmdabind2 is launched by pmcd(1) and should never be executed directly. don't do it. don't be that girl. π
the Install and Remove scripts notify pmcd(1) when the agent is installed or removed. they handle the gossip. π
π¦ FILES π¦
$PCP_PMDAS_DIR/bind2/bind2.confβ mandatory configuration file listing monitored bind2 instances. mandatory means mandatory bestie, no skipping π$PCP_PMDAS_DIR/bind2/Installβ installation script for the pmdabind2 agent π§$PCP_PMDAS_DIR/bind2/Removeβ undo installation script for the pmdabind2 agent ποΈ$PCP_LOG_DIR/pmcd/bind2.logβ the default log file for error messages from pmdabind2 π
π 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). it's giving customization. it's giving options. we love options. β¨
π SEE ALSO π
PCPIntro(1), pmcd(1), pmdanamed(1), named.conf(5) and named(8). go read them, they're all part of the family π«Ά
and that's the whole vibe, bestie β this page came to you straight from Performance Co-Pilot (PCP), filed under PMDABIND2(1), and it's a certified classic. slay, monitor responsibly, and don't run the agent directly. periodt. π β¨π
π¦ where this page comes from
- arch rolling: pcp-pmda-bind2 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) 2017 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms