agent icon indicating copy to clipboard operation
agent copied to clipboard

Allow settings for keep alives and idle connection timeouts for scrape configs

Open mattdurham opened this issue 2 years ago • 3 comments

Allow the usage of custom keep alive duration for scrape configs (both normal and scraping service). This hopefully can be done via the custom DialerFunc

mattdurham avatar Jul 26 '22 14:07 mattdurham

Ideally should be able to pass to the instance.go:newScrapeManager

mattdurham avatar Jul 26 '22 14:07 mattdurham

The custom DialerFunc wouldn't do it, but we can use config.WithKeepAlivesDisabled and config.WithIdleConnTimeout from prometheus/common/config.

rfratto avatar Jul 27 '22 14:07 rfratto

Is there any progress on this one, we are seeing 404 not found issue with kubernetes API for kubelet proxy: https://stackoverflow.com/questions/49275380/node-proxy-404-page-not-found, if we could disable keep alives for the connection and idle conn timeout, hopefully this could be mitigated.

jnyi avatar Aug 08 '22 20:08 jnyi