This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/v1.x by this push:
new b917133 SCB-2176 Fix: Remove Prometheus exporter
b917133 is described below
commit b917133b438e530c20b084a6e4df3e437a089d56
Author: little-cui <[email protected]>
AuthorDate: Tue Jan 5 20:32:12 2021 +0800
SCB-2176 Fix: Remove Prometheus exporter
---
server/metric/prometheus/metrics.go | 4 ----
1 file changed, 4 deletions(-)
diff --git a/server/metric/prometheus/metrics.go
b/server/metric/prometheus/metrics.go
index c652804..2c2c5c7 100644
--- a/server/metric/prometheus/metrics.go
+++ b/server/metric/prometheus/metrics.go
@@ -21,9 +21,7 @@ import (
"github.com/apache/servicecomb-service-center/pkg/rest"
"github.com/apache/servicecomb-service-center/pkg/util"
"github.com/apache/servicecomb-service-center/server/metric"
- rest2 "github.com/apache/servicecomb-service-center/server/rest"
"github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_golang/prometheus/promhttp"
"net/http"
"strconv"
"strings"
@@ -67,8 +65,6 @@ var (
func init() {
prometheus.MustRegister(incomingRequests, successfulRequests,
reqDurations, queryPerSeconds)
-
- rest2.RegisterServerHandler("/metrics", promhttp.Handler())
}
func ReportRequestCompleted(w http.ResponseWriter, r *http.Request, start
time.Time) {