mysqldexporter
mysqld_exporter, commonly referred to as mysqld_exporter or mysqld_exporter, is a Prometheus exporter designed to collect and expose metrics from MySQL and MariaDB servers. It runs as a standalone application, typically as a small network service that exposes an HTTP endpoint (usually /metrics) that Prometheus can scrape. The exporter is written in Go and relies on a MySQL client to query status, variables, and other performance-related data from the database server. It supports multiple collectors, including global status and variables, performance schema, and InnoDB metrics, allowing operators to observe a wide range of server health and performance indicators.
Operation and configuration are centered around a data source name (DSN) that specifies how the exporter connects
Security and deployment considerations include using a dedicated MySQL account with limited privileges, avoiding exposure of