Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-11-28 21:02:51 +0300
committerJacob Vosmaer <jacob@gitlab.com>2019-11-28 21:02:51 +0300
commitf4f380cb51078a6534cf5c35992b1428a7893474 (patch)
treeda62ffde95467d8422b434b93ff324a21772e2e9 /internal/bootstrap
parentbee4674b85e80337da69937e5de8687299452cc3 (diff)
Restore gitaly_connections_total prometheus metric
Diffstat (limited to 'internal/bootstrap')
-rw-r--r--internal/bootstrap/starter/starter.go2
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())