diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-11-28 21:02:51 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2019-11-28 21:02:51 +0300 |
commit | f4f380cb51078a6534cf5c35992b1428a7893474 (patch) | |
tree | da62ffde95467d8422b434b93ff324a21772e2e9 /internal | |
parent | bee4674b85e80337da69937e5de8687299452cc3 (diff) |
Restore gitaly_connections_total prometheus metric
Diffstat (limited to 'internal')
-rw-r--r-- | internal/bootstrap/starter/starter.go | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |