dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Prometheus metrics broken when not using `bin/dev` command

Open tigattack opened this issue 10 months ago • 3 comments

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:

  1. Deploy the provided docker-compose.yml
  2. Ensure PROMETHEUS_EXPORTER_ENABLED is true and port 9394 is bound.
  3. curl -v localhost:9394/metrics
  4. 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.

tigattack avatar Jan 28 '25 13:01 tigattack

I was literally just dealing with this! Just found the app a couple of hours ago so your timing is very fortuitous for me! 😄

chris-mosley avatar Jan 29 '25 05:01 chris-mosley

@tigattack is this still an issue?

Freika avatar May 21 '25 22:05 Freika

Yes it is.

tigattack avatar May 21 '25 23:05 tigattack