添加 docker-compose/prometheus/mysql-exporter/mysql.yaml

This commit is contained in:
2026-03-23 10:08:05 +08:00
parent 7c7acbaac3
commit 3dd5e39c84

View 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"