Add cache eviction metrics to the cache plugin (#4411)
Signed-off-by: Frank Riley <fhriley@gmail.com>
This commit is contained in:
parent
ed3f287fe8
commit
5b9b079dab
4 changed files with 22 additions and 5 deletions
7
plugin/cache/metrics.go
vendored
7
plugin/cache/metrics.go
vendored
|
@ -50,4 +50,11 @@ var (
|
|||
Name: "served_stale_total",
|
||||
Help: "The number of requests served from stale cache entries.",
|
||||
}, []string{"server"})
|
||||
// evictions is the counter of cache evictions.
|
||||
evictions = promauto.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "cache",
|
||||
Name: "evictions_total",
|
||||
Help: "The count of cache evictions.",
|
||||
}, []string{"server", "type"})
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue