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 upThrottled scraping with small heap size doesn't get logged. #3011
Comments
This comment has been minimized.
This comment has been minimized.
|
That's intended behavior. If your desired heap size cannot support your performance demands, scrapes are being skipped. Skipping that many is unfortunate of course, but I don't think there's a feasible way to change this right now.
|
This comment has been minimized.
This comment has been minimized.
|
@fabxc Ah didn't know about that metric. Well, monitoring prometheus_target_skipped_scrapes_total is okay I suppose. Maybe we should provide a set of example alerts for all these things? My main concern is that right now the average user won't know about these and have a hard time realizing what is going on. |
This comment has been minimized.
This comment has been minimized.
|
I think #1481 would help with a lot of these in user support terms. |
fabxc
added
the
component/local storage
label
Aug 1, 2017
This comment has been minimized.
This comment has been minimized.
|
Are you sure nothing was logged? Prometheus should log @discordianfish could you please double check that the above log message is not logged? It should be on error level. And please also check if you ever see |
beorn7
changed the title
Low target heap size causes scrapes to stall
Throttled scraping with small heap size does not appear to get logged.
Aug 7, 2017
This comment has been minimized.
This comment has been minimized.
|
@beorn7 Just confirmed, it's not logging that. It's easy to reproduce too, just set the heap too small. With low heap size you see frequent frequent sweeps logged but no throttling messages:
|
This comment has been minimized.
This comment has been minimized.
|
Eeeenteresting… |
beorn7
changed the title
Throttled scraping with small heap size does not appear to get logged.
Throttled scraping with small heap size doesn't get logged.
Aug 7, 2017
beorn7
self-assigned this
Aug 7, 2017
This comment has been minimized.
This comment has been minimized.
|
@discordianfish I tried to reproduce as you described, but I do get the correct logging:
As you can see, line starting |
This comment has been minimized.
This comment has been minimized.
|
@discordianfish Can you confirm prometheus_target_skipped_scrapes_total is not being incremented? |
brian-brazil
added
component/scraping
kind/more-info-needed
labels
Aug 21, 2017
This comment has been minimized.
This comment has been minimized.
|
It was incremented and I can't reproduce the behavior anymore. Now I see storage throttling being logged. |
discordianfish
closed this
Aug 21, 2017
This comment has been minimized.
This comment has been minimized.
|
prometheus_target_skipped_scrapes_total happens if scrapes aren't happening fast enough, usually due to being starved of resources - the storage here I guess. |
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. |
discordianfish commentedAug 1, 2017
I'm running a tiny prometheus instance (v1.7.1, 50 targets, 2500 series, 70 samples/second). When setting
-storage.local.target-heap-size"too low" Prometheus silently stops scraping my targets. Some targets got scraped but became stale for >10 minutes while others never got scraped at all.In my case
-storage.local.target-heap-size 50000000is 'too low' while 90000000 works without problems.For such tiny setup 90MB heap size seems already quite a lot, but either way Prometheus should log something in this case.