mirror of
https://github.com/coredns/coredns.git
synced 2025-11-14 16:02:16 -05:00
Update metric names (#371)
Cleanup names/typos to match standard naming conventions.
This commit is contained in:
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:
|
||||
|
||||
* coredns_cache_size_guage{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_size{type} - total elements in the case, type is either "denial" or "success".
|
||||
* coredns_cache_capacity{type} - total capacity of the cache, type is either "denial" or "success".
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
8
middleware/cache/handler.go
vendored
8
middleware/cache/handler.go
vendored
@@ -57,15 +57,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: "size",
|
||||
Help: "The number of elements in the cache.",
|
||||
}, []string{"type"})
|
||||
|
||||
cacheCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Namespace: middleware.Namespace,
|
||||
Subsystem: subsystem,
|
||||
Name: "capacity_gauge",
|
||||
Help: "Gauge of cache's capacity.",
|
||||
Name: "capacity",
|
||||
Help: "The cache's capacity.",
|
||||
}, []string{"type"})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user