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] feature(kubelet): Add trackTimestampsStaleness #5050

Merged

Conversation

Breee
Copy link
Contributor

@Breee Breee commented Dec 12, 2024

What this PR does / why we need it

This PR enables trackTimestampsStaleness for the cadvisor path to avoid stale Metrics provided by the cadvisor.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer

@SuperQ suggested this and might want to add comments.
slack conversation: https://cloud-native.slack.com/archives/C167KFM6C/p1733917170837469

Checklist

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

QuentinBisson
QuentinBisson previously approved these changes Dec 12, 2024
Copy link
Member

@QuentinBisson QuentinBisson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@QuentinBisson QuentinBisson merged commit c6c8375 into prometheus-community:main Dec 12, 2024
4 checks passed
@SuperQ
Copy link
Contributor

SuperQ commented Dec 14, 2024

Sorry, but this needed a lot more work in order to be a complete change.

  • The scrape interval needs to be adjusted to 10s in order to handle the inconsistent internal intervals of cAdvisor.
  • This was only supposed to be applied to one endpoint, the cAdvisor metrics. Not all kubelet metrics endpoints.

@QuentinBisson Please take more thought and care to reviewing these kinds of changes.

@Breee
Copy link
Contributor Author

Breee commented Dec 14, 2024 via email

@Breee
Copy link
Contributor Author

Breee commented Dec 14, 2024 via email

@SuperQ
Copy link
Contributor

SuperQ commented Dec 14, 2024

I think a bugfix PR would also be fine.

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.

3 participants