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

feat(metrics): allow customizing kubelet metrics #3528

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Feb 5, 2024

When using Otel for metrics, we don't use ServiceMonitors for kubelet and cAdvisor metrics. The Service for this is maintained by prometheus-operator, which we don't have available, so we use a manual scrape config instead. This change allows the metric regex for this scrape config to be modified, letting users customize what they want to collect.

This should resolve #3500.

Checklist

  • Changelog updated or skip changelog label added
  • Documentation updated
  • Template tests added for new features

@swiatekm swiatekm requested a review from a team as a code owner February 5, 2024 15:21
@sumo-drosiek
Copy link
Contributor

Maybe would it be nicer to have list of regexes and conacatenate them with |. WDYT?

@swiatekm
Copy link
Author

swiatekm commented Feb 5, 2024

Maybe would it be nicer to have list of regexes and conacatenate them with |. WDYT?

That might be more readable, but a single regex is more explicit. And you can just copy paste a custom regex from your ServiceMonitor config and have it work here.

@swiatekm swiatekm merged commit f832add into main Feb 9, 2024
37 checks passed
@swiatekm swiatekm deleted the feat/kubelet-metric-regex branch February 9, 2024 13:49
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.

Additional kubelet_volume_stats_*_bytes metrics not forwarded
2 participants