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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.go b/app.go
index 2cb8bbd9..da1a5315 100644
--- a/app.go
+++ b/app.go
@@ -12,7 +12,6 @@ import (
"sync"
"time"
- "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/cors"
log "github.com/sirupsen/logrus"
@@ -301,7 +300,7 @@ func (a *theApp) Run() {
go func(fd uintptr) {
defer wg.Done()
- handler := promhttp.HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{}).ServeHTTP
+ handler := promhttp.Handler().ServeHTTP
err := listenAndServe(fd, handler, false, nil, nil)
if err != nil {
capturingFatal(err, errortracking.WithField("listener", "metrics"))