mysqld_exporter
mysqld_exporter copied to clipboard
Docker: my.cnf => 'No such file or directory'
Host operating system: output of uname -a
Linux home 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
mysqld_exporter version: output of mysqld_exporter --version
latest
MySQL server version
latest
mysqld_exporter command line flags
docker run -d
-p 9104:9104
prom/mysqld-exporter:latest
--config.my-cnf=./my.cnf
d7c0d75852982e7182b260df7569be11b71bcde238b99f2e6a7f8d8031fa8cdc
-bash: --config.my-cnf=./my.cnf: No such file or directory
the "my.cnf" is in the current working directory
the format of "my.cnf" is the same as in the documentation:
[client] user = foo password = foo123 [client.servers] user = bar password = bar123
What did you do that produced an error?
What did you expect to see?
running exporter
What did you see instead?
an error
can someone please provide an working docker // docker-compose.yaml example?