Update Prometheus to 0.9.1 (#2360)

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2018-12-01 14:38:03 -08:00
committed by Miek Gieben
parent 4c86e546ac
commit e5f5da4297
2 changed files with 2 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ godeps:
go get -u github.com/prometheus/client_golang/prometheus go get -u github.com/prometheus/client_golang/prometheus
(cd $(GOPATH)/src/github.com/mholt/caddy && git checkout -q v0.11.1) (cd $(GOPATH)/src/github.com/mholt/caddy && git checkout -q v0.11.1)
(cd $(GOPATH)/src/github.com/miekg/dns && git checkout -q v1.1.0) (cd $(GOPATH)/src/github.com/miekg/dns && git checkout -q v1.1.0)
(cd $(GOPATH)/src/github.com/prometheus/client_golang && git checkout -q v0.8.0) (cd $(GOPATH)/src/github.com/prometheus/client_golang && git checkout -q v0.9.1)
.PHONY: travis .PHONY: travis
travis: travis:

View File

@@ -5,7 +5,6 @@ import (
"context" "context"
"net" "net"
"net/http" "net/http"
"os"
"sync" "sync"
"time" "time"
@@ -40,7 +39,7 @@ func New(addr string) *Metrics {
} }
// Add the default collectors // Add the default collectors
met.MustRegister(prometheus.NewGoCollector()) met.MustRegister(prometheus.NewGoCollector())
met.MustRegister(prometheus.NewProcessCollector(os.Getpid(), "")) met.MustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}))
// Add all of our collectors // Add all of our collectors
met.MustRegister(buildInfo) met.MustRegister(buildInfo)