Packages / prometheus-mysqld-exporter
APT repository · deb.freshdeb.com/prometheus-mysqld-exporterprinted 28 Oct 2026, 06:46 UTC
prometheus-mysqld-exporter
mysqld_exporter exports MySQL and MariaDB server metrics to Prometheus. One release line for Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04 on amd64 and arm64.
latest 0.21.0github.com/prometheus/mysqld_exporterupstream sourcepackaging
Componentmain
follows every upstream release, minors and majors included. Currently 0.21.0.
Not published yet. The first prometheus-mysqld-exporter release is being built. These commands will work once it lands at deb.freshdeb.com/prometheus-mysqld-exporter; the versions shown are the ones package.yaml will publish.
1Trust the signing key (once per machine)
sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.freshdeb.com/freshdeb-archive-keyring.gpg \ | sudo tee /etc/apt/keyrings/freshdeb-archive-keyring.gpg >/dev/null
Fingerprint 3BBD F03A 9C0B F890 F8CA 9510 7595 CC55 468F 3161. How to verify.
2Add the source
sudo tee /etc/apt/sources.list.d/freshdeb-prometheus-mysqld-exporter.sources >/dev/null <<EOF
Types: deb
URIs: https://deb.freshdeb.com/prometheus-mysqld-exporter
Suites: $(. /etc/os-release && echo $VERSION_CODENAME)
Components: main
Signed-By: /etc/apt/keyrings/freshdeb-archive-keyring.gpg
EOFWith auto, the shell reads the codename from /etc/os-release on the machine you paste this into.
3Install
sudo apt update && sudo apt install prometheus-mysqld-exporter
apt policy prometheus-mysqld-exporter # expect 0.21.0-2+freshdeb~…Before you upgrade from the distribution's prometheus-mysqld-exporter
The freshdeb version sorts higher, so apt upgrade moves you over in place. From jammy's 0.13 or bookworm's 0.14: 0.15 dropped DATA_SOURCE_NAME, and a setup that sets it no longer starts. Move the credentials to /var/lib/prometheus/.my.cnf, or use --mysqld.username, --mysqld.address and MYSQLD_EXPORTER_PASSWORD. Setups that use ~/.my.cnf keep working.
Compared with Debian's package
Debian's packaging decides where things go: package names, paths, users, services and how upgrades behave. The build follows upstream's own release builds wherever Debian's differs.
- Build
- Upstream's release build: pinned Go toolchain,
CGO_ENABLED=0, upstream's version stamps. Upstream's test suite gates the build. - Credentials
- Debian's default,
/var/lib/prometheus/.my.cnf, stays. The defaults file documents the current options and MariaDB'sSLAVE MONITORprivilege. - Layout
- Debian's: systemd unit and init script,
/etc/default/prometheus-mysqld-exporter, logrotate.
Packing list
Every release line of prometheus-mysqld-exporter and the distributions it's built for. Each line is its own APT component and only gets the releases it follows (main: every upstream release, minors and majors included). After upstream end of life it stops building but stays installable. Hatched cells have no build: usually that distribution already ships the same or a newer version itself.
| Line | Component | Current | bookwormDebian 12 | trixieDebian 13 | jammyUbuntu 22.04 | nobleUbuntu 24.04 | resoluteUbuntu 26.04 | Support |
|---|---|---|---|---|---|---|---|---|
| main | main | 0.21.0 | built: 0.21.0-2 | built: 0.21.0-2 | built: 0.21.0-2 | built: 0.21.0-2 | built: 0.21.0-2 | – |
Versions follow <upstream>-<revision>+freshdeb~<distro>, distro being deb12, deb13, ubuntu22.04, ubuntu24.04 or ubuntu26.04, for amd64 and arm64. Published versions are never rebuilt or replaced.
Contents
- prometheus-mysqld-exporter
- Prometheus exporter for MySQL server
Origin
- Upstream
- github.com/prometheus/mysqld_exporterrelease tags pinned to commit hashes
- Debian packaging
- salsa.debian.org/go-team/packages/prometheus-mysqld-exporterimported unmodified at 0200fd4 (0.19.0-2, unstable)
- Our changes
- overlays under
overlays/for bookworm, trixie, jammy, noble, resolute. - Built for
- bookworm, trixie, jammy, noble, resoluteamd64, arm64, built natively
- Notes
- packaging notes · package.yaml · report an issue
Also in Prometheus
- prometheus3.15.1Monitoring system and time series database, with the web UImainlts
- prometheus-
alertmanager 0.34.1Routes, groups and silences Prometheus alerts, with the web UImain - prometheus-
blackbox- 0.29.1Probes endpoints over HTTP, DNS, TCP, ICMP and gRPCmainexporter - prometheus-
node- 1.12.1Hardware and operating system metrics for Prometheusmainexporter - prometheus-
postgres- 0.20.1PostgreSQL server metrics for Prometheusmainexporter - prometheus-
redis- 1.96.0Valkey and Redis metrics for Prometheusmainexporter - prometheus-
snmp- 0.31.0SNMP device metrics for Prometheus, with the config generatormainexporter