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 | |
parent | bee4674b85e80337da69937e5de8687299452cc3 (diff) |
Restore gitaly_connections_total prometheus metric
-rw-r--r-- | changelogs/unreleased/jv-restore-connection-counter.yml | 5 | ||||
-rw-r--r-- | internal/bootstrap/starter/starter.go | 2 |
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()) |