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
+2 -1
View File
@@ -28,6 +28,7 @@ const (
type fixture struct {
srv *httptest.Server
s *store.Store
node *p2p.Node
dev *identity.Device
phrase string // the recovery phrase of the identity behind dev
}
@@ -67,7 +68,7 @@ func newFixture(t *testing.T, tok string, tweak ...func(*Config)) *fixture {
}
srv := httptest.NewServer(New(cfg))
t.Cleanup(func() { srv.Close(); node.Close(); s.Close() })
return &fixture{srv: srv, s: s, dev: dev, phrase: phrase}
return &fixture{srv: srv, s: s, node: node, dev: dev, phrase: phrase}
}
func (f *fixture) do(t *testing.T, method, path, body string, auth bool) (int, []byte) {