مرحباً
لقد قمت ببحث شامل، لكن لم أجد أي شيء لحل هذه المشكلة.
أنا أستخدم إضافة discourse-prometheus مع صورة bitnami/discourse (المُنفَّذة على مجموعة AKS) منذ فترة.
بعد الترقية الأخيرة إلى 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”.