mirror of
https://github.com/coredns/coredns.git
synced 2025-11-26 05:34:13 -05:00
Update metric names (#371)
Cleanup names/typos to match standard naming conventions.
This commit is contained in:
@@ -41,7 +41,7 @@ dnssec [ZONES... ] {
|
||||
|
||||
If monitoring is enabled (via the *prometheus* directive) then the following metrics are exported:
|
||||
|
||||
* coredns_dnssec_size_guage{type} - total elements in the cache, type is "signature".
|
||||
* coredns_dnssec_capacity_guage{type} - total capacity of the cache, type is "signature".
|
||||
* coredns_dnssec_cache_size{type} - total elements in the cache, type is "signature".
|
||||
* coredns_dnssec_cache_capacity{type} - total capacity of the cache, type is "signature".
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -43,15 +43,15 @@ var (
|
||||
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Namespace: middleware.Namespace,
|
||||
Subsystem: subsystem,
|
||||
Name: "size_guage",
|
||||
Help: "Gauge of number of elements in the cache.",
|
||||
Name: "cache_size",
|
||||
Help: "The number of elements in the dnssec cache.",
|
||||
}, []string{"type"})
|
||||
|
||||
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Namespace: middleware.Namespace,
|
||||
Subsystem: subsystem,
|
||||
Name: "capacity_gauge",
|
||||
Help: "Gauge of cache's capacity.",
|
||||
Name: "cache_capacity",
|
||||
Help: "The dnssec cache's capacity.",
|
||||
}, []string{"type"})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user