mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Metrics lost 'dns' subsystem
Local variable shadowing in global const. Now subsystem is back to 'dns'.
This commit is contained in:
@@ -29,7 +29,7 @@ type Metrics struct {
|
||||
|
||||
func (m *Metrics) Start() error {
|
||||
m.Once.Do(func() {
|
||||
define("")
|
||||
define()
|
||||
|
||||
prometheus.MustRegister(requestCount)
|
||||
prometheus.MustRegister(requestDuration)
|
||||
@@ -46,7 +46,7 @@ func (m *Metrics) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func define(subsystem string) {
|
||||
func define() {
|
||||
requestCount = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: middleware.Namespace,
|
||||
Subsystem: subsystem,
|
||||
|
||||
Reference in New Issue
Block a user