Commit 40b6774a authored by Miek Gieben's avatar Miek Gieben

Metrics lost 'dns' subsystem

Local variable shadowing in global const. Now subsystem is back to
'dns'.
parent b1b52426
......@@ -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,
......
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