Skip to content

Commit

Permalink
Enable waku prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Sep 27, 2023
1 parent b596061 commit 69e9675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 69e9675

Please sign in to comment.