Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus 2.0.0-beta.0 gaps in metrics #2982
Comments
This comment has been minimized.
This comment has been minimized.
|
The gaps are probably real, and this is the new staleness handling. Are you sure that the containers in question were returned at every scrape? |
brian-brazil
added
the
dev-2.0
label
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
I need to dig into this deeper.
You can't always control what you're scraping so I'm wondering whether it makes sense to allow overriding this behavior per target. |
This comment has been minimized.
This comment has been minimized.
It's all or nothing. |
This comment has been minimized.
This comment has been minimized.
|
The /metrics endpoint actually randomly alters between showing systemd cgroups and docker containers. So this is clearly a bug in kubernetes/cadvisor. |
hanikesn
closed this
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
|
The linked k8s issue does not resolve this in general I think. |
This comment has been minimized.
This comment has been minimized.
dadux
commented
Aug 3, 2017
|
Just upgraded to 2.0.0-beta.0 seeing the same "gaps" with the cAdvisor target. @fabxc - I'm not familiar with the staleness handling, but my understanding is in that case prometheus 1.7 metrics would be inaccurate too and therefore there's no point for us rolling back ? |
This comment has been minimized.
This comment has been minimized.
|
Yea, so cAdvisor metrics are flapping on and off. 2.0 just happens to detect this and set staleness markers. Overall it's definitely a cAdvisor issue though google/cadvisor#1704 |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hanikesn commentedJul 24, 2017
•
edited
I'm running the prometheus 2.0.0-beta.0 in our kubernetes 1.7.1 cluster and it's having trouble with gaps in the metrics which are scraped from cadvisor. Prometheus 1 .7.0 scrapes them fine:
2.0.0-beta.0

1.7.0

Scrape rule:
There's nothing suspicious in the logs.