add _total suffix to ruler counter metrics (#2582)

Signed-off-by: Ben Ye <yb532204897@gmail.com>
pull/2599/head
Ben Ye 5 years ago committed by GitHub
parent fb4b332020
commit 900f714e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/ruler/manager/memstore.go

@ -52,7 +52,7 @@ 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",
@ -60,7 +60,7 @@ func NewMetrics(r prometheus.Registerer) *Metrics {
}),
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"}),
}
}

Loading…
Cancel
Save