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 upCannot connect to host from within Docker container #1990
Comments
This comment has been minimized.
This comment has been minimized.
|
For reference, I figured I would also add the response from
|
grobie
added
kind/question
component/config
labels
Sep 15, 2016
This comment has been minimized.
This comment has been minimized.
|
I think that FYI: https://prometheus.io/docs/instrumenting/exposition_formats/ |
This comment has been minimized.
This comment has been minimized.
|
Yeah, the /metrics output is invalid. The sample values cannot be |
This comment has been minimized.
This comment has been minimized.
|
Btw., you can also go to |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the |
This comment has been minimized.
This comment has been minimized.
|
Ah, it's wired. Could you tell me what is printed at |
This comment has been minimized.
This comment has been minimized.
|
Never mind, I had another issue going on to cause that one. The error is in fact |
geowa4
closed this
Sep 18, 2016
geowa4
referenced this issue
Sep 18, 2016
Closed
Invalid value "unknown" for "erlang_vm_logical_processors_available" #2
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
geowa4 commentedSep 14, 2016
What did you do?
To get up and running quickly, I built my own Docker image with the following Dockerfile.
The contents of prometheus.yml are listed below in the designated section.
I've run the container with
docker run --name prom --rm -it --add-host 'app.local:10.10.2.103' -p 9090:9090 my_prometheus.What did you expect to see?
When querying
upin Prometheus with my browser (http://localhost:9090/graph), I expect to see a 1 forapp.local:4000as I do with checking Prometheus itself.What did you see instead? Under which circumstances?
I see a 0 for the
upmetric even though the application is indeed up and has a working/metricsendpoint. To verify connectivity to the host, I rundocker exec -it prom wget app.local:4000/metrics -O /dev/stdout. The yields the text I expect.Environment
NA, but for good measure.
NA