mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-28 03:57:02 +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"},
|
||
|
})
|
||
|
)
|