mirror of
https://github.com/hanzoai/dns.git
synced 2026-10-30 18:40:55 +00:00
Mechanical migration following the beego v2.3.8 fork precedent (bc7b075). Same exposition surface, zero prometheus/client_golang in the dep graph.
25 lines
668 B
Go
25 lines
668 B
Go
package forward
|
|
|
|
import (
|
|
"github.com/coredns/coredns/plugin"
|
|
|
|
metric "github.com/luxfi/metric"
|
|
)
|
|
|
|
// Variables declared for monitoring.
|
|
var (
|
|
healthcheckBrokenCount = metric.NewCounter(metric.CounterOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "forward",
|
|
Name: "healthcheck_broken_total",
|
|
Help: "Counter of the number of complete failures of the healthchecks.",
|
|
})
|
|
|
|
maxConcurrentRejectCount = metric.NewCounter(metric.CounterOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "forward",
|
|
Name: "max_concurrent_rejects_total",
|
|
Help: "Counter of the number of queries rejected because the concurrent queries were at maximum.",
|
|
})
|
|
)
|