2020-11-05 15:02:07 +01:00
|
|
|
package local
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/coredns/coredns/plugin"
|
|
|
|
|
|
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
2026-06-24 13:31:31 +04:00
|
|
|
// LocalhostCount reports the number of times we've seen a non-apex localhost special-case query.
|
2020-11-05 15:02:07 +01:00
|
|
|
LocalhostCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
|
Namespace: plugin.Namespace,
|
|
|
|
|
Subsystem: "local",
|
|
|
|
|
Name: "localhost_requests_total",
|
2026-06-24 13:31:31 +04:00
|
|
|
Help: "Counter of special localhost subdomain requests.",
|
2020-11-05 15:02:07 +01:00
|
|
|
})
|
|
|
|
|
)
|