diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-02-11 11:39:25 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2020-02-11 11:39:25 +0300 |
commit | 2b0661b4ff4fe112798f03f62861096104b9e373 (patch) | |
tree | 6a6fe4dc6f0d499fbce4ae2b6e5a151cfef6eea1 /main.go | |
parent | 81db00b64dd2d4c9aec85fc58e92374e806732d9 (diff) |
Add prometheus metrics for GitLab API client
Refactor metrics initialization removing init function
from the metrics package.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,6 +19,7 @@ import ( "gitlab.com/gitlab-org/gitlab-pages/internal/host" "gitlab.com/gitlab-org/gitlab-pages/internal/logging" "gitlab.com/gitlab-org/gitlab-pages/internal/tlsconfig" + "gitlab.com/gitlab-org/gitlab-pages/metrics" ) // VERSION stores the information about the semantic version of application @@ -397,6 +398,8 @@ func main() { rand.Seed(time.Now().UnixNano()) + metrics.MustRegister() + daemonMain() appMain() } |