Elastic Stack
[APM] Elastic APM server is not available (Connection refused (Connection refused))
구티맨
2020. 5. 12. 16:59
[apm-server-healthcheck] WARN co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server http://xxxx:8200/ is not available (Connection refused (Connection refused))
위와 같이 에러가 발생 할 경우, 먼저 APM server 가 정상적으로 수행중인지 먼저 체크를 해봐야 한다.
service apm-server status
위 명령어를 수행하여, server 가 정상적으로 수행중인지 확인하고, 그렇지 않다면 서버를 다시 실행해준다.
그래도 문제가 발생한다면, 서버 설정을 변경 후 재시작 해준다.
apm-server:
host: "0.0.0.0:8200"
/etc/apm-server/apm-server.yml 파일에 host값을 0.0.0.0 으로 설정해두면, 어느 서버에서나 접속을 가능하게 해준다.