consul_exporter icon indicating copy to clipboard operation
consul_exporter copied to clipboard

Failed to query service health

Open infa-svijayak opened this issue 3 years ago • 1 comments

Hi, I saw one of your previous issue https://github.com/prometheus/consul_exporter/issues/133 where the response you have given is by increasing the timeout for consul while getting service health, but increase in timeout doesnt seem to work in my case too. I am still getting the same error

time="2020-10-13T23:06:18Z" level=error msg="Failed to query service health: Get http://<consul-service>/v1/health/service/<servicename>?stale=: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" source="consul_exporter.go:294"

Inside the pod i am able to do wget and getting the response in no time

wget http://consul-service/v1/health/service/servicename?stale=:
Connecting to <consul-service> (xxx.xxx.xxx.xxx.:80)
servicename 100% |************************************************************************************************************************************************************|  1821   0:00:00 ETA

Any assistance on this much appreciated

infa-svijayak avatar Oct 14 '20 07:10 infa-svijayak

Which version are you running? How much have you increased the timeout? Have you checked the server's logs?

simonpasquier avatar Nov 06 '20 11:11 simonpasquier