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
+3
View File
@@ -138,6 +138,8 @@ type Node struct {
log *slog.Logger
// guard rate-limits and bans the peers that relay to us.
guard *peerGuard
// gate limits inbound connections per address and refuses banned peers.
gate *ipGate
// gossipIn counts listings that arrived by gossip since the last summary.
gossipIn tally
// recoverAsked counts the peers asked for our own listings (see recoverOwn).
@@ -280,6 +282,7 @@ func New(ctx context.Context, cfg Config) (*Node, error) {
regions: map[string]*regionRun{},
syncing: map[peer.ID]bool{},
boot: boot,
gate: gate,
}
if n.clock == nil {
n.clock = time.Now