Prometheus exporter that collects and exposes MySQL and MariaDB server metrics for monitoring.
Prometheus mysqld_exporter is a dedicated exporter for the Prometheus monitoring system that collects performance and status metrics from MySQL and MariaDB database servers. It translates database statistics into the Prometheus metrics format, enabling comprehensive monitoring, alerting, and visualization of database health and performance. The exporter follows a stateless, pull-based model and supports multi-target scraping from a single instance.
Database administrators, SREs, and DevOps engineers who need to monitor MySQL or MariaDB servers within a Prometheus-based observability stack. It is also suitable for developers managing cloud-native applications requiring database performance insights.
Developers choose mysqld_exporter for its extensive metric collection (over 40 collectors), multi-target support that reduces operational overhead, and seamless integration with Prometheus' pull-based architecture. Its flexibility in authentication, containerized deployment, and advanced filtering options make it a robust, standardized solution for database monitoring.
Exporter for MySQL server metrics
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
A single exporter instance can scrape metrics from multiple MySQL servers via HTTP probe parameters like /probe?target=foo:3306, reducing deployment overhead and resource usage.
Supports over 40 collectors for global status, performance schema, InnoDB, replication, and more, enabling deep performance analysis and alerting.
Allows authentication via .my.cnf files, command-line flags, and environment variables, with config.my-cnf supporting multiple database sections for secure multi-target setups.
Officially distributed as a Docker image (prom/mysqld-exporter), facilitating easy integration into cloud-native and containerized environments.
Many collectors require MySQL >= 5.6 or MariaDB >= 10.3, and features like user connection limits aren't supported on all versions (e.g., MariaDB 10.1), restricting compatibility with older databases.
Setting up multi-target scraping involves intricate Prometheus relabeling rules and management of auth_module parameters in config files, which can be error-prone and steep for newcomers.
The exporter is tightly coupled with Prometheus' pull-based model, lacking native support for push-based systems or direct integration with other monitoring tools, creating vendor lock-in.