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 upScrapes time out with no error in logs and no apparent problem with scrape endpoint #5383
Comments
simonpasquier
added
kind/more-info-needed
component/scraping
labels
Mar 20, 2019
This comment has been minimized.
This comment has been minimized.
|
We would need profile data to troubleshoot this issue. Next time it happens, you need to run the |
This comment has been minimized.
This comment has been minimized.
|
Thank you. Will do. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chrisfw commentedMar 18, 2019
•
edited by simonpasquier
Bug Report
What did you do?
Configured prometheus to scrape primary target at 15s intervals
What did you expect to see?
No gaps in metrics loaded via scrape
What did you see instead? Under which circumstances?
On two different occasions after a period of time running prometheus, I noticed sampling gaps and it appears from the scrape_duration_seconds metric that scrapes were timing out at 10s. The first time it occurred, it seemed to typically affect every other scrape. The machine prometheus is running on was under some load at the time, but I confirmed through curl that the scrape endpoint was responding and the response time was substantially less than 10 seconds every time, so the endpoint does not appear to be the cause. I checked the logs of both prometheus and the scrape endpoint and neither reported any errors. Both times this occurred, the only viable solution seemed to be restarting prometheus. After the second occurrence I thought a bug report was in order.
Environment
Red Hat Enterprise Linux Server release 7.6 (Maipo)
System information:
Linux 4.14.35-1844.1.3.el7uek.x86_64 x86_64
Prometheus version:
prometheus, version 2.7.1 (branch: HEAD, revision: 62e591f)
build user: root@f9f82868fc43
build date: 20190131-11:16:59
go version: go1.11.5
Prometheus configuration file: