Skip to content

Commit 6d898a1

Browse files
committed
Add counter metrics
1 parent a658707 commit 6d898a1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugin/metrics.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ var (
3232
Name: "cache_deletes_total",
3333
Help: "The total number of cache deletes",
3434
})
35+
CacheScanCounter = promauto.NewCounter(prometheus.CounterOpts{
36+
Namespace: metrics.Namespace,
37+
Name: "cache_scans_total",
38+
Help: "The total number of cache scans",
39+
})
40+
CacheScanKeysCounter = promauto.NewCounter(prometheus.CounterOpts{
41+
Namespace: metrics.Namespace,
42+
Name: "cache_scan_keys_total",
43+
Help: "The total number of cache scan keys",
44+
})
3545
)

0 commit comments

Comments
 (0)