mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
af3aaf073c
1. bm perf default use engine port 2. add grpc gzip import 3. fix discovery client register addrs bug
24 lines
556 B
Go
24 lines
556 B
Go
package cache
|
|
|
|
import "github.com/bilibili/kratos/pkg/stat/metric"
|
|
|
|
const _metricNamespace = "cache"
|
|
|
|
// be used in tool/kratos-gen-bts
|
|
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"},
|
|
})
|
|
)
|