client_java icon indicating copy to clipboard operation
client_java copied to clipboard

Added the ability to configured the HTTPServer socket timeout

Open dhoard opened this issue 1 year ago • 0 comments

Issue

For scenarios where metrics take a long time to retrieve/timeout, we are dependent on the operating system to timeout the socket, resulting in collections getting "stuck"

https://github.com/prometheus/jmx_exporter/issues/911

Proposal

Add a method to HTTPServer.Builder to configure the underline socket timeout for the HTTPServer. Once added, we can expose configuration in the Prometheus JMX Exporter to configure the value.

dhoard avatar Feb 22 '24 15:02 dhoard