aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/metrics.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-04-21 18:59:35 +0100
committerGravatar GitHub <noreply@github.com> 2018-04-21 18:59:35 +0100
commita466bb6fc61f43be36fd3f51f768df1355c1e600 (patch)
tree9db1921f1777d345eed6353f55a338f8413bec2f /plugin/metrics/metrics.go
parentacbcad7b4ed0f7e0e5f4d6ec6b23509d41b92950 (diff)
downloadcoredns-a466bb6fc61f43be36fd3f51f768df1355c1e600.tar.gz
coredns-a466bb6fc61f43be36fd3f51f768df1355c1e600.tar.zst
coredns-a466bb6fc61f43be36fd3f51f768df1355c1e600.zip
Export metrics in setup; so it also works after reload (#1715)
* brr; a sleep * Shouldnt need a query
Diffstat (limited to 'plugin/metrics/metrics.go')
-rw-r--r--plugin/metrics/metrics.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugin/metrics/metrics.go b/plugin/metrics/metrics.go
index 384aa8bb4..b989ccc2f 100644
--- a/plugin/metrics/metrics.go
+++ b/plugin/metrics/metrics.go
@@ -5,10 +5,8 @@ import (
"net"
"net/http"
"os"
- "runtime"
"sync"
- "github.com/coredns/coredns/coremain"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars"
"github.com/coredns/coredns/plugin/pkg/log"
@@ -52,9 +50,6 @@ func New(addr string) *Metrics {
met.MustRegister(vars.ResponseSize)
met.MustRegister(vars.ResponseRcode)
- // Initialize metrics.
- buildInfo.WithLabelValues(coremain.CoreVersion, coremain.GitCommit, runtime.Version()).Set(1)
-
return met
}