Skip to content
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

[prometheus-mysql-exporter] multipleTarget.targets does not take effect #4836

Open
zhangzx1996 opened this issue Sep 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@zhangzx1996
Copy link

Describe the bug a clear and concise description of what the bug is.

I deploy mysql-exporter by helm in k8s. And I want this exporter scrape two mysql instance.
I was configed serviceMonitor.targets as follow:

serviceMonitor:
  multipleTarget:
    enabled: true
    targets:
      - endpoint: 172.30.0.10
        name: self-mysql
        port: 3307
        user: exporter1
        password: password
      - endpoint: 172.30.0.10
        name: exporter2
        port: 3306
        user: exporter2
        password: password

After exectu Helm install, there is a my.cnf look as this

      [client.beta-mysql]
      host=localhost
      port=3306
      user=exporter
      password=password
      [client.self-mysql]
      user=exporter1
      password=password
      [client.dev-mysql]
      user=exporter2
      password=password

What's your helm version?

2.6.1

What's your kubectl version?

kubephere. v3.3.2

Which chart?

Prometheus-mysql-exporter

What's the chart version?

0.15.1

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

The iphost I config in the targets[0].endpoint is not effect.

Anything else we need to know?

No response

@zhangzx1996 zhangzx1996 added the bug Something isn't working label Sep 5, 2024
@zeritti zeritti changed the title [Prometheus-mysql-exporter] multipleTarget.targets does not take effect. [prometheus-mysql-exporter] multipleTarget.targets does not take effect Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant