diff options
author | 2018-12-01 14:38:03 -0800 | |
---|---|---|
committer | 2018-12-01 22:38:03 +0000 | |
commit | e5f5da429782ffdf03893036ac4965a3fba682fd (patch) | |
tree | dbfc52aa0762dbfb9e4ac60a7726d82a1d98a03a | |
parent | 4c86e546ac01746323bd45dd6d49febe4f16ba4c (diff) | |
download | coredns-e5f5da429782ffdf03893036ac4965a3fba682fd.tar.gz coredns-e5f5da429782ffdf03893036ac4965a3fba682fd.tar.zst coredns-e5f5da429782ffdf03893036ac4965a3fba682fd.zip |
Update Prometheus to 0.9.1 (#2360)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | plugin/metrics/metrics.go | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -32,7 +32,7 @@ godeps: 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/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 travis: diff --git a/plugin/metrics/metrics.go b/plugin/metrics/metrics.go index 6b496cccc..159eec014 100644 --- a/plugin/metrics/metrics.go +++ b/plugin/metrics/metrics.go @@ -5,7 +5,6 @@ import ( "context" "net" "net/http" - "os" "sync" "time" @@ -40,7 +39,7 @@ func New(addr string) *Metrics { } // Add the default collectors met.MustRegister(prometheus.NewGoCollector()) - met.MustRegister(prometheus.NewProcessCollector(os.Getpid(), "")) + met.MustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{})) // Add all of our collectors met.MustRegister(buildInfo) |