From f4f380cb51078a6534cf5c35992b1428a7893474 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 28 Nov 2019 18:02:51 +0000 Subject: Restore gitaly_connections_total prometheus metric --- internal/bootstrap/starter/starter.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/bootstrap') diff --git a/internal/bootstrap/starter/starter.go b/internal/bootstrap/starter/starter.go index 5751c033e..48d00f095 100644 --- a/internal/bootstrap/starter/starter.go +++ b/internal/bootstrap/starter/starter.go @@ -3,6 +3,7 @@ package starter import ( "github.com/sirupsen/logrus" "gitlab.com/gitlab-org/gitaly/internal/bootstrap" + "gitlab.com/gitlab-org/gitaly/internal/connectioncounter" ) const ( @@ -40,6 +41,7 @@ func New(cfg Config, servers bootstrap.GracefulStoppableServer) bootstrap.Starte } logrus.WithField("address", cfg.Addr).Infof("listening at %s address", cfg.Name) + l = connectioncounter.New(cfg.family(), l) go func() { errCh <- servers.Serve(l, cfg.isSecure()) -- cgit v1.2.3