dawarich
dawarich copied to clipboard
Prometheus metrics broken when not using `bin/dev` command
OS & Hardware
Debian 12 VM.
Version
0.23.5.
Describe the bug
When using the bin/rails ... command, the Prometheus metrics endpoint refuses connection.
When using the bin/dev command, everything functions as expected.
To Reproduce Steps to reproduce the behavior:
- Deploy the provided
docker-compose.yml - Ensure
PROMETHEUS_EXPORTER_ENABLEDistrueand port 9394 is bound. curl -v localhost:9394/metrics- See error
Expected behavior
Prometheus exporter works.
Logs
E, [2025-01-28T13:25:02.831237 #38] ERROR -- : Prometheus Exporter, failed to send message Connection refused - connect(2) for "0.0.0.0" port 9394
Additional context
I suspect this issue began in 0.22.0, but I've only test 0.23.5.
I was literally just dealing with this! Just found the app a couple of hours ago so your timing is very fortuitous for me! 😄
@tigattack is this still an issue?
Yes it is.