diff --git a/pkg/server/server.go b/pkg/server/server.go index 76240c04..c7c19e92 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -20,6 +20,7 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "github.com/multiformats/go-multiaddr" "github.com/pkg/errors" + "github.com/prometheus/client_golang/prometheus" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect/pgdialect" "github.com/uptrace/bun/driver/pgdriver" @@ -142,6 +143,7 @@ func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) node.WithPrivateKey(prvKey), node.WithHostAddress(s.hostAddr), node.WithKeepAlive(time.Duration(options.KeepAlive) * time.Second), + node.WithPrometheusRegisterer(prometheus.DefaultRegisterer), } if options.EnableWS {