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

[kube-prometheus-stack] Disable kube-state-metrics service scraping by default #5260

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

gdsmith
Copy link
Contributor

@gdsmith gdsmith commented Jan 31, 2025

What this PR does / why we need it

Chart is set up to install the service monitor for kube-state-metrics so it's easy to duplicate metrics if scraping is not disabled.

Which issue this PR fixes

Special notes for your reviewer

@andrewgkew, @gianrubio, @gkarthiks, @GMartinez-Sisti, @jkroepke, @scottrigby, @Xtigyro, @QuentinBisson

Not sure about what level of version bump this should be, just went with patch release, happy to take advisement on this though. I know it's fixing a closed issue, but it takes a bit of knowledge and experience to track down why this happens and fix it so felt it was worth a PR.

Checklist

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

Chart is set up to install the service monitor for kube-state-metrics so it's easy to duplicate metrics if scraping is not disabled.

Signed-off-by: gdsmith <george@mukuru.com>
Signed-off-by: gdsmith <george@mukuru.com>
@jkroepke jkroepke merged commit ac6165c into prometheus-community:main Jan 31, 2025
5 checks passed
@jkroepke
Copy link
Member

Thanks

@KyriosGN0
Copy link
Contributor

FYI, this broke our ksm, we did use the default config but the removal of that caused while the target appeared in prometheus it was empty

@jkroepke
Copy link
Member

jkroepke commented Feb 7, 2025

@KyriosGN0 the servicemonitor approach wont work with ksm?

@KyriosGN0
Copy link
Contributor

@jkroepke nvm, seems like a false alarm, some dev cluster had nasty leftovers.
thx anyway!

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.

[kube-state-metrics] some metrics appear to be duplicated
3 participants