Skip to content

Commit 84ce260

Browse files
committed
fix(store/metrics): fix metrics prefix
1 parent 542a2be commit 84ce260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: store/cache/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type metrics struct {
2020
}
2121

2222
func newMetrics(bc *AccessorCache) (*metrics, error) {
23-
metricsPrefix := fmt.Sprintf("eds_cache_%p_", bc)
23+
metricsPrefix := fmt.Sprintf("eds_cache_%p_", bc.name)
2424

2525
evictedCounter, err := meter.Int64Counter(metricsPrefix+"evicted_counter",
2626
metric.WithDescription("eds cache evicted event counter"))

0 commit comments

Comments
 (0)