Commit e5f5da42 authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

Update Prometheus to 0.9.1 (#2360)

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 4c86e546
...@@ -32,7 +32,7 @@ godeps: ...@@ -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:
......
...@@ -5,7 +5,6 @@ import ( ...@@ -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 { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment