metrics: Prometheus endpoint on its own --metrics listener; the pod exposes it inside the cluster only

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-19 10:56:43 +01:00
co-authored by Claude Sonnet 5.5
parent b922808a51
commit c653ae4206
13 changed files with 306 additions and 3 deletions
+5
View File
@@ -555,6 +555,11 @@ first, then through a relay; none for loopback and private ones) and prints
when the built-in bootstrap name is down. The web UI shows the same under
"Invite someone" (`#/invite`, in the menu once the owner has signed in).
`run --metrics ADDR` serves Prometheus metrics on a listener of its own (off by
default; no login, so not on a public address): peers, peers per followed
region, listings held, gossip dropped or rejected, peers banned, sync requests
and connections refused, Go memory (`internal/api/metrics.go`).
`run` also takes `--no-default-bootstrap`, `--no-dht` and `--no-mdns`, and keeps
the peers it has met in `peers.json` next to its keys.