Update metric names (#371)
Cleanup names/typos to match standard naming conventions.
This commit is contained in:
parent
490ffbd6d2
commit
98a8fb2622
5 changed files with 13 additions and 13 deletions
4
middleware/cache/README.md
vendored
4
middleware/cache/README.md
vendored
|
@ -39,8 +39,8 @@ The minimum TTL allowed on resource records is 5 seconds.
|
||||||
|
|
||||||
If monitoring is enabled (via the *prometheus* directive) then the following metrics are exported:
|
If monitoring is enabled (via the *prometheus* directive) then the following metrics are exported:
|
||||||
|
|
||||||
* coredns_cache_size_guage{type} - total elements in the case, type is either "denial" or "success".
|
* coredns_cache_size{type} - total elements in the case, type is either "denial" or "success".
|
||||||
* coredns_cache_capacity_guage{type} - total capacity of the cache, type is either "denial" or "success".
|
* coredns_cache_capacity{type} - total capacity of the cache, type is either "denial" or "success".
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|
8
middleware/cache/handler.go
vendored
8
middleware/cache/handler.go
vendored
|
@ -57,15 +57,15 @@ var (
|
||||||
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||||
Namespace: middleware.Namespace,
|
Namespace: middleware.Namespace,
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "size_guage",
|
Name: "size",
|
||||||
Help: "Gauge of number of elements in the cache.",
|
Help: "The number of elements in the cache.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
|
||||||
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||||
Namespace: middleware.Namespace,
|
Namespace: middleware.Namespace,
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "capacity_gauge",
|
Name: "capacity",
|
||||||
Help: "Gauge of cache's capacity.",
|
Help: "The cache's capacity.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ dnssec [ZONES... ] {
|
||||||
|
|
||||||
If monitoring is enabled (via the *prometheus* directive) then the following metrics are exported:
|
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_cache_size{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_capacity{type} - total capacity of the cache, type is "signature".
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -43,15 +43,15 @@ var (
|
||||||
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||||
Namespace: middleware.Namespace,
|
Namespace: middleware.Namespace,
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "size_guage",
|
Name: "cache_size",
|
||||||
Help: "Gauge of number of elements in the cache.",
|
Help: "The number of elements in the dnssec cache.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
|
||||||
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||||
Namespace: middleware.Namespace,
|
Namespace: middleware.Namespace,
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "capacity_gauge",
|
Name: "cache_capacity",
|
||||||
Help: "Gauge of cache's capacity.",
|
Help: "The dnssec cache's capacity.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// Basic usage:
|
// Basic usage:
|
||||||
//
|
//
|
||||||
// result := Scrape("http://localhost:9153/metrics")
|
// result := Scrape("http://localhost:9153/metrics")
|
||||||
// v := MetricValue("coredns_cache_capacity_gauge", result)
|
// v := MetricValue("coredns_cache_capacity", result)
|
||||||
//
|
//
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue