I am trying to run ELK APM - application performance monitoring container on AWS.
Port mapping 8200:8200
and setting Environment variables
output.elasticsearch.hosts = ['http://ec2-xxxxxxx.compute.amazonaws.com:9200'] setup.kibana.host = ec2-xxxxxxx.compute.amazonaws.com:5601
should work: -E output.elasticsearch.hosts=["elasticsearch:9200"]
which corresponds to environment variable set in aws.
Also regular config file suggests naming should be same: https://www.elastic.co/guide/en/apm/server/current/elasticsearch-output.html
but started container for sure ignores the settings. And error is seen in logs:
ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch(http://elasticsearch:9200)): Get http://elasticsearch:9200: lookup elasticsearch on 22.214.171.124:53: no such host
so clearly showing that its using default configuration from /usr/share/apm-server/apm-server.yml
where elasticsearch output is set to http://elasticsearch:9200