How to Access Prometheus Metrics (Netbird Server with Reverse Proxy)

Describe the problem

With my deployment (combined container with quick start method, using reverse proxy, latest container versions) I cannot access the prometheus endpoint on 9090 on the host.

To Reproduce

Steps to reproduce the behavior:

curl http://localhost:9090/metrics
curl: (7) Failed to connect to localhost port 9090 after 0 ms: Couldn't connect to server

sudo ss -tlnp shows that the only listening services on the host (other than ssh and DNS) are port 80 and 443. So it looks like the prometheus endpoint is not accessible from the host.

Expected behavior

Have a documented way to access the prometheus endpoint for my particular configuration

Are you using NetBird Cloud?

Self hosted

NetBird version

netbird v0.74.2

Is any other VPN software installed?

No

Have you tried these troubleshooting steps

  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Checked firewall settings