Error: connect ECONNREFUSED <host>:8200
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)
Trying to setup and connect to APM server on Azure ELK Stack. I installed APM on the kibana VM with the APM server configured to listen on localhost:8200.
I'm testing my NodeJS locally on a server and getting the error above, with host replaced with the public ip. Attempting to change the APM host to the public IP results in a 'too many colons in address' error.
On the VM I have port 8200 open inbound and outbound.
Thanks for trying out Elastic APM. If you are running the NodeJS app on a different machine from the APM Server, you'll need to get APM Server to listen on a public interface. You can do that by starting APM Server with a configuration setting like so:
./apm-server -E apm-server.host=0.0.0.0:8200
You can also edit the apm-server.yml to achieve the same:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.