prometheus / consul_exporter

Exporter for Consul metrics
Apache License 2.0
440 stars 167 forks source link

Failed to query service health #190

Open infa-svijayak opened 4 years ago

infa-svijayak commented 4 years ago

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

simonpasquier commented 3 years ago

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