赞
踩
CREATE USER 'exporter'@'%' IDENTIFIED BY 'passwd';
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'%' WITH MAX_USER_CONNECTIONS 3;
commit;
FLUSH PRIVILEGES;
select User,Host,authentication_string,Password from mysql.user;
version: '2'
services:
mysqlexporter:
image: prom/mysqld-exporter
hostname: mysqld-exporter
container_name: mysqld-exporter
ports:
- "19104:9104"
environment:
- DATA_SOURCE_NAME=exporter:passwd@(192.168.1.84:3306)/
- job_name: mysqld
static_configs:
- targets: ['192.168.1.84:19104','192.168.10.158:19104']
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。