mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
golint
This commit is contained in:
@@ -30,4 +30,5 @@ func (m *Metrics) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
|
||||
return status, err
|
||||
}
|
||||
|
||||
// Name implements the Handler interface.
|
||||
func (m *Metrics) Name() string { return "prometheus" }
|
||||
|
||||
@@ -87,4 +87,5 @@ func prometheusParse(c *caddy.Controller) (*Metrics, error) {
|
||||
|
||||
var metricsOnce sync.Once
|
||||
|
||||
// Addr is the address the where the metrics are exported by default.
|
||||
const Addr = "localhost:9153"
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
// Request* and Reponse* are the prometheus counters and gauges we are using for exporting metrics.
|
||||
var (
|
||||
RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: middleware.Namespace,
|
||||
|
||||
Reference in New Issue
Block a user