-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker: my.cnf => 'No such file or directory' #790
Comments
please update the docker documentaion, it's incorrect ... |
Having same issue. How did this fix? |
https://github.com/prometheus/mysqld_exporter/blob/main/README.md#single-exporter-mode try using |
Thanks for the respond. This is the official documentation for docker: https://github.com/prometheus/mysqld_exporter/blob/main/README.md#using-docker
And this:
In the current directory is an
Dear maintainers/devs please fix this or update the documentation. |
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?
The text was updated successfully, but these errors were encountered: