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] remove base metrics endpoint from serviceMonitor when Multitarget is enabled #4495

Conversation

ghms28
Copy link
Contributor

@ghms28 ghms28 commented Apr 28, 2024

What this PR does / why we need it

This PR modifies the serviceMonitor template in the Prometheus MySQL Exporter Helm chart to prevent the default endpoint with the '/metrics' path from being scraped by Prometheus when the multi-target feature is enabled.

The need for this modification arises from the desire to have more control over which endpoints are scraped by Prometheus when using the multi-target feature. Before this, when the multi-target feature was enabled, all endpoints within the MySQL Exporter pod were be scraped, including the '/metrics' endpoint, which may not be desired in certain scenarios.

With this change, users can ensure that only the specific endpoints they want to scrape are included, providing greater flexibility and control over monitoring configurations. This can help optimize resource usage and reduce potential noise in monitoring systems by excluding unnecessary endpoints from scraping.

Which issue this PR fixes

Special notes for your reviewer

None other than requesting to approve initial checks and linting.
@Juanchimienti @monotek

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@monotek monotek merged commit fd69f63 into prometheus-community:main Apr 28, 2024
4 checks passed
wilfriedroset pushed a commit to wilfriedroset/helm-charts that referenced this pull request May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants