Skip to content

ignore timestamps from cadvisor metrics#695

Merged
brancz merged 2 commits intoprometheus-operator:masterfrom
paulfantom:cadvisor
Oct 2, 2020
Merged

ignore timestamps from cadvisor metrics#695
brancz merged 2 commits intoprometheus-operator:masterfrom
paulfantom:cadvisor

Conversation

@paulfantom
Copy link
Copy Markdown
Member

Over a year ago cAdvisor v0.33.0 started to include timestamps in their metrics. This change was included in k8s 1.18 and kubelet started to do the same on /metrics/cadvisor endpoint. This can lead to stale data being ingested as can be observed for example when the container is OOMKilled (as in the image below).

image

This issue was observed by one of prometheus users and reported on prometheus IRC. The proposed fix was to discard timestamps and was later confirmed to be working.

Creating it now, when I have data from prometheus IRC and don't need to reproduce everything.

@paulfantom
Copy link
Copy Markdown
Member Author

Workaround fix for google/cadvisor#2526

Copy link
Copy Markdown
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@brancz
Copy link
Copy Markdown
Collaborator

brancz commented Oct 2, 2020

Ultimately this still needs to be fixed in cAdvisor but I'm happy to move ahead with this for now.

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