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

[bitnami/kafka] jmx-metrics servicemonitor has wrong path #27546

Closed
horihel opened this issue Jun 26, 2024 · 3 comments · Fixed by #27562
Closed

[bitnami/kafka] jmx-metrics servicemonitor has wrong path #27546

horihel opened this issue Jun 26, 2024 · 3 comments · Fixed by #27562
Assignees
Labels
kafka solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@horihel
Copy link
Contributor

horihel commented Jun 26, 2024

Name and Version

bitnami/kafka-29.3.4

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. install kafka with metrics.jmx.enabled=true and metrics.serviceMonitor.enabled=true
  2. prometheus-operator will pick up the new service
  3. target reports as DOWN in prometheus with error expected a valid start token, got "<" ("INVALID") while parsing: "<"

Are you using any custom parameters or values?

--set metrics.jmx.enabled=true --set metrics.serviceMonitor.enabled=true

What is the expected behavior?

prometheus being able to scrape metrics

What do you see instead?

expected a valid start token, got "<" ("INVALID") while parsing: "<"

Additional information

It looks like the recent upgrade to jmx-metrics 1.0 changed the path which metrics are exposed. jmx-exporter no longer exposes metrics on the root path, instead, they are exposed on /metrics

I think this can be easily solved by changing the path in the serviceMonitor to /metrics instead of /

@horihel horihel added the tech-issues The user has a technical issue about an application label Jun 26, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 26, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

@horihel
Copy link
Contributor Author

horihel commented Jul 2, 2024

PR is ready for review.

@carrodher
Copy link
Member

Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.

Your contribution is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kafka solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants