mirror of
https://github.com/coredns/coredns.git
synced 2026-07-17 05:00:12 -04:00
fix(local): handle names under .localhost. (#8151)
This commit is contained in:
committed by
GitHub
parent
faeb8ba699
commit
e45ad5f87a
@@ -8,11 +8,11 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// LocalhostCount report the number of times we've seen a localhost.<domain> query.
|
||||
// LocalhostCount reports the number of times we've seen a non-apex localhost special-case query.
|
||||
LocalhostCount = promauto.NewCounter(prometheus.CounterOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "local",
|
||||
Name: "localhost_requests_total",
|
||||
Help: "Counter of localhost.<domain> requests.",
|
||||
Help: "Counter of special localhost subdomain requests.",
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user