Ciao,
Ho effettuato una ricerca approfondita, ma non ho trovato nulla per risolvere questo problema.
Utilizzo il plugin discourse-prometheus con l’immagine bitnami/discourse (distribuita su un cluster AKS) da un po’ di tempo.
Dopo l’ultimo aggiornamento a bitnami/discourse:2.6.7, noto che il plugin discourse-prometheus non funziona più e nei log appare quanto segue:
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 segnala che il target è offline con un errore 502 Bad gateway.
Se si accede a /metrics tramite browser, viene visualizzato il messaggio “Incomplete response received from application”.