export metrics without units

This commit is contained in:
pascal
2026-04-09 12:46:45 +02:00
parent 099c493b18
commit 7f98cf30cf
5 changed files with 26 additions and 16 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ func TestMetrics_RoundTripper(t *testing.T) {
},
}
exporter, err := prometheus.New()
exporter, err := prometheus.New(
prometheus.WithoutUnits(),
)
if err != nil {
t.Fatalf("create prometheus exporter: %v", err)
}
+3 -1
View File
@@ -236,7 +236,9 @@ func (s *Server) ListenAndServe(ctx context.Context, addr string) (err error) {
s.svcPorts = make(map[types.ServiceID][]uint16)
s.lastMappings = make(map[types.ServiceID]*proto.ProxyMapping)
exporter, err := prometheus.New()
exporter, err := prometheus.New(
prometheus.WithoutUnits(),
)
if err != nil {
return fmt.Errorf("create prometheus exporter: %w", err)
}