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 up"Context deadline exceeded" when using host names in Vagrant+Landrush #2352
Comments
This comment has been minimized.
This comment has been minimized.
|
This is most likely an issue with your resolver setup, I'd suggest debugging from there. |
This comment has been minimized.
This comment has been minimized.
|
Doesn't my resolver work just fine if |
This comment has been minimized.
This comment has been minimized.
|
A resolver works fine, there's more than one way to do resolution on a machine though. Have you checked what's in your resolv.conf? |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
It looks like it works if I use the FQDN:
But I don't have to use those outside Prometheus, because |
This comment has been minimized.
This comment has been minimized.
|
Not all resolvers support search paths. |
This comment has been minimized.
This comment has been minimized.
|
Can you please expand on that -- is Prometheus using a different resolver from every other executable on this system? Because everything else works fine with the short name. |
This comment has been minimized.
This comment has been minimized.
|
We're moving all support-related questions to https://groups.google.com/forum/#!forum/prometheus-users if you're still having this issue. |
brian-brazil
closed this
Mar 27, 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. |
cubranic commentedJan 18, 2017
What did you do?
I set up a multi-node Vagrant, using the Landrush plugin to provide dynamic name resolution of VMs on both host and guests. This works fine in that
curland other utilities I've tried resolve the names correctly. But when I use those names as targets inprometheus.yml, the targets are shown as "down" with error "context deadline exceeded". If I use their IP address, Prometheus is able to scrape them just fine.What did you expect to see?
Successful polling of the targets regardless of whether they are specified by host name or IP.
What did you see instead? Under which circumstances?
Using the hostname, I get no stats with "context deadline exceeded" error message.
Environment
VirtualBox 5.1.12 on 10.12.2
Vagrant 1.8.7
Landrush 1.2.0
System information:
Linux 3.10.0-327.el7.x86_64 x86_64
Prometheus version:
prometheus, version 1.4.1 (branch: master, revision: 2a89e87)
build user: root@e685d23d8809
build date: 20161128-09:59:22
go version: go1.7.3
Prometheus configuration file: