prometheus-mysqld-exporter
On MySQL instance
- add
Check more options:
- Create /etc/mysql/prometheus.cnf
Text Only
[client]
user = prometheus
password = prometheus
[client.servers]
user = prometheus
password = prometheus
- Create MySQL user
MySQL
CREATE USER 'prometheus'@'%' IDENTIFIED BY 'prometheus' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'prometheus'@'%';
flush privileges;
- Install prometheus-mysqld-exporter
Prometheus side
- prometheus.yml