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
parentbee4674b85e80337da69937e5de8687299452cc3 (diff)
Restore gitaly_connections_total prometheus metric
-rw-r--r--changelogs/unreleased/jv-restore-connection-counter.yml5
-rw-r--r--internal/bootstrap/starter/starter.go2
2 files changed, 7 insertions, 0 deletions
diff --git a/changelogs/unreleased/jv-restore-connection-counter.yml b/changelogs/unreleased/jv-restore-connection-counter.yml
new file mode 100644
index 000000000..d7fcbdf9d
--- /dev/null
+++ b/changelogs/unreleased/jv-restore-connection-counter.yml
@@ -0,0 +1,5 @@
+---
+title: Restore gitaly_connections_total prometheus metric
+merge_request: 1657
+author:
+type: fixed
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())