안녕하세요
철저하게 검색해 보았지만 이 문제를 해결할 방법을 찾지 못했습니다.
제가 bitnami/discourse 이미지(AKS 클러스터에 배포)와 함께 discourse-prometheus 플러그인을 꽤 오랫동안 사용해 왔습니다.
최근 bitnami/discourse:2.6.7로 업그레이드한 후 discourse-prometheus 플러그인이 작동하지 않는 것을 확인했으며, 로그에는 다음과 같은 내용이 표시됩니다.
App 539 output: Prometheus Exporter, failed to send message Connection refused - connect(2) for "localhost" port 9405 App 539 output: [ 2021-06-26 13:05:24.3855 539/0x00005605c6d15b38(Worker 1) utils.rb ]: *** Exception Errno::ECONNREFUSED in Rack application object (Failed to open TCP connection to localhost:9405 (Connection refused - connect(2) for "localhost" port 9405)) (process 539, thread 0x00005605c6d15b38(Worker 1)): App 539 output: from /opt/bitnami/ruby/lib/ruby/2.6.0/net/http.rb:949:in `rescue in block in connect'
Prometheus에서는 타겟이 502 Bad gateway 오류로 다운되어 있다고 표시됩니다.
브라우저에서 /metrics를 호출하면 “Incomplete response received from application”(응용 프로그램에서 불완전한 응답을 받음)이 표시됩니다.