Failed to connect to apmX port 8200: Connection refused

I'm getting following error (through my app's logs):

sending transactions failed: sending request for SendTransactions failed: Post http://apmX:8200/v1/transactions: dial tcp 10.0.10.187:8200: connect: connection refused

yet, apm-server seems to be up and running:

# docker exec -it apmX sh
sh-4.2$ curl localhost:8200
404 page not found
sh-4.2$ 

I even tried accessing it from

# docker run -it --network Y alpine sh
/ # apk add -q curl
/ # curl -v apmX:8200
* Rebuilt URL to: apmX:8200/
*   Trying 10.0.10.187...
* TCP_NODELAY set
* connect to 10.0.10.187 port 8200 failed: Connection refused
* Failed to connect to apmX port 8200: Connection refused
* Closing connection 0
curl: (7) Failed to connect to apmX port 8200: Connection refused
/ # 

it's like it's running on localhost instead of 0.0.0.0

Please advise.

Per Configuration file | APM Server Reference | Elastic

# head -2 apm-server.yml
apm-server:
        host: 0.0.0.0:8200
#

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.