Closed blankhang closed 1 year ago
For questions/help/support please use our community channels. There are more people available to potentially respond to your request and the whole community can benefit from the answers provided.
Here's the solution in case anyone else runs into this and doesn't want to figure out which of the 7 different possible community channels has it.
Apparently the DATA_SOURCE_NAME
environment variable is now silently ignored, even though the documentation for the prom/mysqld-exporter
docker image still prominently shows it as the way to configure credentials.
You'll need to use command-line arguments:
mysqld-exporter:
image: quay.io/prometheus/mysqld-exporter
container_name: mysqld-exporter
restart: unless-stopped
command:
- "--mysqld.username=user:password"
- "--mysqld.address=host:port"
networks:
- mynet
Source: https://discuss.prometheus.io/t/docker-compose-mysql-exporter-start-error/1734/2
This issue isn't actually related to #763 other than DATA_SOURCE_NAME
being ignored.
Also, I have to wonder why the username
argument holds both the username and password, and the address
argument holds both the host and port. 🤷♀️
Here's the solution in case anyone else runs into this and doesn't want to figure out which of the 7 different possible community channels has it.
Apparently the
DATA_SOURCE_NAME
environment variable is now silently ignored, even though the documentation for theprom/mysqld-exporter
docker image still prominently shows it as the way to configure credentials.You'll need to use command-line arguments:
mysqld-exporter: image: quay.io/prometheus/mysqld-exporter container_name: mysqld-exporter restart: unless-stopped command: - "--mysqld.username=user:password" - "--mysqld.address=host:port" networks: - mynet
Source: https://discuss.prometheus.io/t/docker-compose-mysql-exporter-start-error/1734/2
This issue isn't actually related to #763 other than
DATA_SOURCE_NAME
being ignored.Also, I have to wonder why the
username
argument holds both the username and password, and theaddress
argument holds both the host and port. 🤷♀️
this solves the problem! thank you!
Host operating system: output of
uname -a
Linux vm-ubuntu-11 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linux
mysqld_exporter version: output of
mysqld_exporter --version
0.15.0 on docker
MySQL server version
8.0.32 on docker
mysqld_exporter command line flags
prometheus.yml
What did you do that produced an error?
What did you expect to see?
start without error
What did you see instead?
can not start