You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm using this exporter in Kubernetes cluster to get MySQL/MariaDB metrics from databases. I have several databases, so in config.my-cnf file I configured several targets and named them, e.g.:
It looks like mysqld-exporter tries to connect to the localhost MariaDB. But, I didn't specify localhost values anywhere.
My suggestion is, if I don't configure [client] part, then exporter get default values and tries to connect to the localhost.
So, the questions are: Is it possible to configure targets with name ([client.host1]) instead of [client]? Maybe have you already fixed this issue in newer versions? Or, is exporter has special argument to disable default client?
Host operating system: output of uname -a
It's docker container, the output of uname -a command:
Linux mysql-exporter-prometheus-mysql-exporter-64757ff665-ssb8m 5.14.0-362.24.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 15 07:18:13 EST 2024 x86_64 GNU/Linux
mysqld_exporter version: output of mysqld_exporter --version
mysqld_exporter, version 0.15.1 (branch: HEAD, revision: cc349684494b5038ec5a52233bdca9eb9291e6f2)
build user: root@d89c15b9f5ad
build date: 20231212-07:55:09
go version: go1.21.5
platform: linux/amd64
tags: unknown
MySQL server version
I think, that I can ignore it, because the issue was not exactly with connection, but with configuration
I expect that mysqld exporter won't try to connect to the localhost mysql if I won't configure [client] part, but will configure [client.<somename>] parts
Description
Hi there, I'm using this exporter in Kubernetes cluster to get MySQL/MariaDB metrics from databases. I have several databases, so in config.my-cnf file I configured several targets and named them, e.g.:
I see metrics from targets, everything working good. But, I noticed next in the logs:
It looks like mysqld-exporter tries to connect to the localhost MariaDB. But, I didn't specify localhost values anywhere.
My suggestion is, if I don't configure
[client]
part, then exporter get default values and tries to connect to the localhost.So, the questions are: Is it possible to configure targets with name (
[client.host1]
) instead of[client]
? Maybe have you already fixed this issue in newer versions? Or, is exporter has special argument to disable default client?Host operating system: output of
uname -a
It's docker container, the output of
uname -a
command:mysqld_exporter version: output of
mysqld_exporter --version
MySQL server version
I think, that I can ignore it, because the issue was not exactly with connection, but with configuration
mysqld_exporter command line flags
What did you do that produced an error?
In config file, don't describe
[client]
part, just configure multi-target parts, e.g:What did you expect to see?
I expect that mysqld exporter won't try to connect to the localhost mysql if I won't configure
[client]
part, but will configure[client.<somename>]
partsWhat did you see instead?
Additional information
As I use this module inside of Kubernetes cluster, I use this Helm chart: https://artifacthub.io/packages/helm/prometheus-community/prometheus-mysql-exporter/2.4.0
Version of Helm Chart is 2.4.0
The text was updated successfully, but these errors were encountered: