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.
32 lines
901 B
Go
32 lines
901 B
Go
package dnssec
|
|
|
|
import (
|
|
"github.com/coredns/coredns/plugin"
|
|
|
|
metric "github.com/luxfi/metric"
|
|
)
|
|
|
|
var (
|
|
// cacheSize is the number of elements in the dnssec cache.
|
|
cacheSize = metric.NewGaugeVec(metric.GaugeOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "dnssec",
|
|
Name: "cache_entries",
|
|
Help: "The number of elements in the dnssec cache.",
|
|
}, []string{"server", "type"})
|
|
// cacheHits is the count of cache hits.
|
|
cacheHits = metric.NewCounterVec(metric.CounterOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "dnssec",
|
|
Name: "cache_hits_total",
|
|
Help: "The count of cache hits.",
|
|
}, []string{"server"})
|
|
// cacheMisses is the count of cache misses.
|
|
cacheMisses = metric.NewCounterVec(metric.CounterOpts{
|
|
Namespace: plugin.Namespace,
|
|
Subsystem: "dnssec",
|
|
Name: "cache_misses_total",
|
|
Help: "The count of cache misses.",
|
|
}, []string{"server"})
|
|
)
|