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 upState: DOWN, Error: context deadline exceeded #2224
Comments
This comment has been minimized.
This comment has been minimized.
|
Does curl work from the Prometheus node as well? If so, try using tcpdump or Wireshark to find out what request Prometheus is sending. Something must be off. |
This comment has been minimized.
This comment has been minimized.
|
@juliusv Thanks for your response but how do I check whether curl works from the Prometheus node? I'm working with only the Prometheus server. Hope I haven't missed out anything. Once again thanks. |
This comment has been minimized.
This comment has been minimized.
|
You mean you already did the curl from the Prometheus server's node? If so, the Prometheus must be doing something differently when sending the request. Then I would suggest using tcpdump or Wireshark on either the Prometheus node or the node where the service is to see what is going on on the wire. |
This comment has been minimized.
This comment has been minimized.
|
Sorry but this is my first time of using a tool like Wireshark so bear with me. When I captured from Loopback lo0 and filtered on "http", I saw requests from the Prometheus endpoint (localhost:9090/metrics) and my application (promtest.dev/metrics) - I opened both in my browser. No scraping requests from Prometheus to my promtes.dev showed up. With my application, I got this from the prometheus endpoint:
I changed the target to "foo.dev" (which doesn't exist), restarted Prometheus and got exactly the same output as above. |
This comment has been minimized.
This comment has been minimized.
|
If you still have issues with this, send a question to the prometheus-users https://groups.google.com/forum/#!forum/prometheus-users mailing list. |
grobie
closed this
Mar 5, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
dakala commentedNov 27, 2016
What did you do?
The metrics endpoint of my web application seems to be working. I can curl it and get good data. I've added my configuration to prometheus.yml
What did you expect to see?
I expect to see the metrics Prometheus has scrapped.
What did you see instead? Under which circumstances?
When I view the Prometheus targets page, my endpoint is listed but it's reported as down with the error, "context deadline exceeded".
Environment
System information:
Darwin 15.6.0 x86_64
Prometheus version:
prometheus, version 1.3.1 (branch: master, revision: be47695)
build user: root@37f0aa346b26
build date: 20161104-20:27:37
go version: go1.7.3
Alertmanager version:
insert output of
alertmanager -versionhere (if relevant to the issue)Prometheus configuration file:
Thanks for the attention.