添加 docker-compose/prometheus/mysql-exporter/mysql.yaml
This commit is contained in:
12
docker-compose/prometheus/mysql-exporter/mysql.yaml
Normal file
12
docker-compose/prometheus/mysql-exporter/mysql.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3.8'
|
||||||
|
services:
|
||||||
|
mysqld-exporter:
|
||||||
|
image: quay.io/prometheus/mysqld-exporter:v0.15.1
|
||||||
|
container_name: mysqld-exporter
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9104:9104"
|
||||||
|
volumes:
|
||||||
|
- ./my.cnf:/etc/mysqld_exporter/.my.cnf:ro
|
||||||
|
command:
|
||||||
|
- "--config.my-cnf=/etc/mysqld_exporter/.my.cnf"
|
||||||
Reference in New Issue
Block a user