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 upPrometheus 2.0: spurious errors in consul service discovery #3413
Comments
This comment has been minimized.
This comment has been minimized.
|
Duplicate of #3353. |
grobie
closed this
Nov 4, 2017
grobie
reopened this
Nov 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Soo, this should have been fixed with 2.0.0-rc.2 actually. Can you confirm that Consul was available for the full time? |
This comment has been minimized.
This comment has been minimized.
|
Yes,consul has been running the entire time. I can't reproduce this problem by curling the URL it prints out. So I assume the issue isn't on the consul's side. How often does it try to connect? Seems like more than once per minute. Is there a way to control this? |
This comment has been minimized.
This comment has been minimized.
|
This was fixed in rc3, not rc2 afaik |
This comment has been minimized.
This comment has been minimized.
|
Thanks @zemek! That's correct. Please report if not fixed in rc-3 (or the 2.0 release which will come very soon). |
grobie
closed this
Nov 7, 2017
This comment has been minimized.
This comment has been minimized.
tangyong
commented
Feb 3, 2018
|
The issue happened again, the following error happened while using prometheus to obtain services registered in consul, and I have confirmed level=error ts=2018-02-03T10:45:31.677093539Z caller=consul.go:283 component="target manager" discovery=consul msg="Error refreshing service" service=promether-exporter err="Get http://10.27.136.227:9996/v1/catalog/service/promether-exporter?index=116543&wait=30000ms: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" The error caused the grafana dashboard did not display any data. My prometheus version is: Version 2.0.0 |
This comment has been minimized.
This comment has been minimized.
tangyong
commented
Feb 4, 2018
|
@grobie could you please see the problem again? thanks! |
This comment has been minimized.
This comment has been minimized.
nhuray
commented
Apr 1, 2018
|
@grobie I met the same issue with Prometheus version 2.2.0:
Consul is running and when I run a curl it works ! |
This comment has been minimized.
This comment has been minimized.
vishksaj
commented
Sep 24, 2018
•
|
facing same issue in 2.2.1 |
This comment has been minimized.
This comment has been minimized.
hbagdi
commented
Sep 26, 2018
|
Facing the same issue as posted by @vishksaj with 2.2.1 with no apparent pattern |
thesamet commentedNov 4, 2017
•
edited
What did you do?
Start prometheus
What did you expect to see?
No errors in the logs
What did you see instead? Under which circumstances?
From time to time prometheus would print a log message indicating that it failed fetching service information from consul. There is little impact, since it does seem to be able to connect to it at start time.
Environment
Prometheus 2.0.0-rc2 on Linux. Service discovery using consul.
System information:
Prometheus version:
Alertmanager version:
Not installed.
Prometheus configuration file: