Skip to content

Commit

Permalink
add _total suffix to ruler counter metrics (#2582)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <yb532204897@gmail.com>
  • Loading branch information
yeya24 authored Sep 3, 2020
1 parent fb4b332 commit 900f714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ruler/manager/memstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ func NewMetrics(r prometheus.Registerer) *Metrics {
return &Metrics{
Evaluations: promauto.With(r).NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "ruler_memory_for_state_evaluations",
Name: "ruler_memory_for_state_evaluations_total",
}, []string{"status", "tenant"}),
Samples: promauto.With(r).NewGauge(prometheus.GaugeOpts{
Namespace: "loki",
Name: "ruler_memory_samples",
}),
CacheHits: promauto.With(r).NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "ruler_memory_for_state_cache_hits",
Name: "ruler_memory_for_state_cache_hits_total",
}, []string{"tenant"}),
}
}
Expand Down

0 comments on commit 900f714

Please sign in to comment.