mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Export metrics in setup; so it also works after reload (#1715)
* brr; a sleep * Shouldnt need a query
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user