mirror of
https://github.com/go-kratos/kratos.git
synced 2025-07-09 01:17:10 +02:00
23 lines
522 B
Go
23 lines
522 B
Go
![]() |
package cache
|
||
|
|
||
|
import "github.com/bilibili/kratos/pkg/stat/metric"
|
||
|
|
||
|
const _metricNamespace = "cache"
|
||
|
|
||
|
var (
|
||
|
MetricHits = metric.NewCounterVec(&metric.CounterVecOpts{
|
||
|
Namespace: _metricNamespace,
|
||
|
Subsystem: "",
|
||
|
Name: "hits_total",
|
||
|
Help: "cache hits total.",
|
||
|
Labels: []string{"name"},
|
||
|
})
|
||
|
MetricMisses = metric.NewCounterVec(&metric.CounterVecOpts{
|
||
|
Namespace: _metricNamespace,
|
||
|
Subsystem: "",
|
||
|
Name: "misses_total",
|
||
|
Help: "cache misses total.",
|
||
|
Labels: []string{"name"},
|
||
|
})
|
||
|
)
|