sladkoff/minecraft-prometheus-exporter

[Bug Report] MC 1.21 no web host

Closed this issue · 2 comments

Opening the host and port shows no webservice being hosted and times out

  • Running Paper 1.21 with Crafty Controller inside a Docker container on CasaOS on a Raspberry Pi 5
  • Confirmed all ports are being forwarded correctly
  • E.g. MC server is accessible and playable on 25565, and Dynmap is viewable on 8123

Logs show nothing out of the ordinary:

[17:58:27] [Server thread/INFO]: [PrometheusExporter] Loading server plugin PrometheusExporter v3.1.0
[17:58:53] [Server thread/INFO]: [PrometheusExporter] Enabling PrometheusExporter v3.1.0

Also tried running on a completely fresh server with no plugins - same issue. So its not plugin conflict

Any advice? Please let me know if I can provide any more details

I have also tried ports other than the default to rule out port conflicts

[15:08:03 INFO]: [PrometheusExporter] Enabling PrometheusExporter v3.1.0
[15:08:04 INFO]: [org.eclipse.jetty.server.Server] jetty-12.0.6; built: 2024-01-30T02:43:24.387Z; git: 78ab6e6ba163f89cdd97f2ae0283fbb5e371cfaf; jvm 21.0.4+7-Ubuntu-1ubuntu222.04
[15:08:04 INFO]: [org.eclipse.jetty.server.AbstractConnector] Started ServerConnector@56f1abdb{HTTP/1.1, (http/1.1)}{localhost:25560}
[15:08:04 INFO]: [org.eclipse.jetty.server.Server] Started oejs.Server@175c6727{STARTING}[12.0.6,sto=0] @75688ms
[15:08:04 INFO]: [PrometheusExporter] Started Prometheus metrics endpoint at: 127.0.0.1:25560

My apologies, I had the wrong host configured. Using Localhost doesn't work within a docker container, once I changed the host to 0.0.0.0 the metrics endpoint was properly bound and forwarded.
(Thank you for making this project I greatly appreciate it!)