Skip to content

Commit ad1a72a

Browse files
committed
Fixes from testing.
1 parent 9f8700f commit ad1a72a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cortex-mixin/dashboards/alertmanager.libsonnet

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ local utils = import 'mixin-utils/utils.libsonnet';
205205
$.queryPanel(
206206
[
207207
|||
208-
sum(cluster_job:cortex_alertmanager_state_replication_total{%s}:rate5m)
208+
sum(cluster_job:cortex_alertmanager_state_replication_total:rate5m{%s})
209209
-
210-
sum(cluster_job:cortex_alertmanager_state_replication_failed_total{%s}:rate5m)
210+
sum(cluster_job:cortex_alertmanager_state_replication_failed_total:rate5m{%s})
211211
||| % [$.jobMatcher('alertmanager'), $.jobMatcher('alertmanager')],
212-
'sum(cluster_job:cortex_alertmanager_state_replication_failed_total{%s}:rate5m)' % $.jobMatcher('alertmanager'),
212+
'sum(cluster_job:cortex_alertmanager_state_replication_failed_total:rate5m{%s})' % $.jobMatcher('alertmanager'),
213213
],
214214
['success', 'failed']
215215
)
@@ -219,11 +219,11 @@ local utils = import 'mixin-utils/utils.libsonnet';
219219
$.queryPanel(
220220
[
221221
|||
222-
sum(cluster_job:cortex_alertmanager_partial_state_merges_total{%s}:rate5m)
222+
sum(cluster_job:cortex_alertmanager_partial_state_merges_total:rate5m{%s})
223223
-
224-
sum(cluster_job:cortex_alertmanager_partial_state_merges_failed_total{%s}:rate5m)
224+
sum(cluster_job:cortex_alertmanager_partial_state_merges_failed_total:rate5m{%s})
225225
||| % [$.jobMatcher('alertmanager'), $.jobMatcher('alertmanager')],
226-
'sum(cluster_job:cortex_alertmanager_partial_state_merges_failed_total{%s}:rate5m)' % $.jobMatcher('alertmanager'),
226+
'sum(cluster_job:cortex_alertmanager_partial_state_merges_failed_total:rate5m{%s})' % $.jobMatcher('alertmanager'),
227227
],
228228
['success', 'failed']
229229
)

cortex-mixin/recording_rules.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,15 @@ local utils = import 'mixin-utils/utils.libsonnet';
414414
|||,
415415
},
416416
{
417-
record: 'cluster_job:cortex_alertmanager_state_persist_total:rate5m',
417+
record: 'cluster_job:cortex_alertmanager_partial_state_merges_total:rate5m',
418418
expr: |||
419-
sum by (cluster, job) (rate(cortex_alertmanager_state_persist_total[5m]))
419+
sum by (cluster, job) (rate(cortex_alertmanager_partial_state_merges_total[5m]))
420420
|||,
421421
},
422422
{
423-
record: 'cluster_job:cortex_alertmanager_state_persist_failed_total:rate5m',
423+
record: 'cluster_job:cortex_alertmanager_partial_state_merges_failed_total:rate5m',
424424
expr: |||
425-
sum by (cluster, job) (rate(cortex_alertmanager_state_persist_failed_total[5m]))
425+
sum by (cluster, job) (rate(cortex_alertmanager_partial_state_merges_failed_total[5m]))
426426
|||,
427427
},
428428
],

0 commit comments

Comments
 (0)