Skip to content

Commit d7cfe81

Browse files
yeya24csmarchbanks
authored andcommitted
remove _total suffix for some gauge metrics (#1685)
Signed-off-by: yeya24 <[email protected]>
1 parent 05b14ec commit d7cfe81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/alertmanager/multitenant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const (
6969
var (
7070
totalConfigs = prometheus.NewGauge(prometheus.GaugeOpts{
7171
Namespace: "cortex",
72-
Name: "alertmanager_configs_total",
72+
Name: "alertmanager_configs",
7373
Help: "How many configs the multitenant alertmanager knows about.",
7474
})
7575
statusTemplate *template.Template

pkg/ruler/scheduler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const (
3434
var (
3535
totalConfigs = promauto.NewGauge(prometheus.GaugeOpts{
3636
Namespace: "cortex",
37-
Name: "scheduler_configs_total",
37+
Name: "scheduler_configs",
3838
Help: "How many configs the scheduler knows about.",
3939
})
4040
totalRuleGroups = promauto.NewGauge(prometheus.GaugeOpts{
4141
Namespace: "cortex",
42-
Name: "scheduler_groups_total",
42+
Name: "scheduler_groups",
4343
Help: "How many rule groups the scheduler is currently evaluating",
4444
})
4545
configUpdates = promauto.NewCounter(prometheus.CounterOpts{

0 commit comments

Comments
 (0)