@@ -68,19 +68,19 @@ local utils = import 'mixin-utils/utils.libsonnet';
68
68
})
69
69
.addPanel(
70
70
$.panel('Active Configurations' ) +
71
- $.statPanel('sum(cortex_ruler_managers_total{%s})' % $.jobMatcher(' ruler' ), format='short' )
71
+ $.statPanel('sum(cortex_ruler_managers_total{%s})' % $.jobMatcher($._config.job_names. ruler), format='short' )
72
72
)
73
73
.addPanel(
74
74
$.panel('Total Rules' ) +
75
- $.statPanel('sum(cortex_prometheus_rule_group_rules{%s})' % $.jobMatcher(' ruler' ), format='short' )
75
+ $.statPanel('sum(cortex_prometheus_rule_group_rules{%s})' % $.jobMatcher($._config.job_names. ruler), format='short' )
76
76
)
77
77
.addPanel(
78
78
$.panel('Read from Ingesters - QPS' ) +
79
- $.statPanel('sum(rate(cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/QueryStream"}[5m]))' % $.jobMatcher(' ruler' ), format='reqps' )
79
+ $.statPanel('sum(rate(cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/QueryStream"}[5m]))' % $.jobMatcher($._config.job_names. ruler), format='reqps' )
80
80
)
81
81
.addPanel(
82
82
$.panel('Write to Ingesters - QPS' ) +
83
- $.statPanel('sum(rate(cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/Push"}[5m]))' % $.jobMatcher(' ruler' ), format='reqps' )
83
+ $.statPanel('sum(rate(cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/Push"}[5m]))' % $.jobMatcher($._config.job_names. ruler), format='reqps' )
84
84
)
85
85
)
86
86
.addRow(
@@ -89,16 +89,16 @@ local utils = import 'mixin-utils/utils.libsonnet';
89
89
$.panel('EPS' ) +
90
90
$.queryPanel(
91
91
[
92
- $.rulerQueries.ruleEvaluations.success % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )],
93
- $.rulerQueries.ruleEvaluations.failure % $.jobMatcher(' ruler' ),
92
+ $.rulerQueries.ruleEvaluations.success % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)],
93
+ $.rulerQueries.ruleEvaluations.failure % $.jobMatcher($._config.job_names. ruler),
94
94
],
95
95
['success' , 'failed' ],
96
96
),
97
97
)
98
98
.addPanel(
99
99
$.panel('Latency' ) +
100
100
$.queryPanel(
101
- $.rulerQueries.ruleEvaluations.latency % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )],
101
+ $.rulerQueries.ruleEvaluations.latency % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)],
102
102
'average'
103
103
),
104
104
)
@@ -126,22 +126,22 @@ local utils = import 'mixin-utils/utils.libsonnet';
126
126
$.row('Writes (Ingesters)' )
127
127
.addPanel(
128
128
$.panel('QPS' ) +
129
- $.qpsPanel('cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/Push"}' % $.jobMatcher(' ruler' ))
129
+ $.qpsPanel('cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/Push"}' % $.jobMatcher($._config.job_names. ruler))
130
130
)
131
131
.addPanel(
132
132
$.panel('Latency' ) +
133
- $.latencyPanel('cortex_ingester_client_request_duration_seconds' , '{%s, operation="/cortex.Ingester/Push"}' % $.jobMatcher(' ruler' ))
133
+ $.latencyPanel('cortex_ingester_client_request_duration_seconds' , '{%s, operation="/cortex.Ingester/Push"}' % $.jobMatcher($._config.job_names. ruler))
134
134
)
135
135
)
136
136
.addRow(
137
137
$.row('Reads (Ingesters)' )
138
138
.addPanel(
139
139
$.panel('QPS' ) +
140
- $.qpsPanel('cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/QueryStream"}' % $.jobMatcher(' ruler' ))
140
+ $.qpsPanel('cortex_ingester_client_request_duration_seconds_count{%s, operation="/cortex.Ingester/QueryStream"}' % $.jobMatcher($._config.job_names. ruler))
141
141
)
142
142
.addPanel(
143
143
$.panel('Latency' ) +
144
- $.latencyPanel('cortex_ingester_client_request_duration_seconds' , '{%s, operation="/cortex.Ingester/QueryStream"}' % $.jobMatcher(' ruler' ))
144
+ $.latencyPanel('cortex_ingester_client_request_duration_seconds' , '{%s, operation="/cortex.Ingester/QueryStream"}' % $.jobMatcher($._config.job_names. ruler))
145
145
)
146
146
)
147
147
.addRowIf(
@@ -208,34 +208,34 @@ local utils = import 'mixin-utils/utils.libsonnet';
208
208
$.row('Notifications' )
209
209
.addPanel(
210
210
$.panel('Delivery Errors' ) +
211
- $.queryPanel($.rulerQueries.notifications.failure % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )], '{{ user }}' )
211
+ $.queryPanel($.rulerQueries.notifications.failure % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)], '{{ user }}' )
212
212
)
213
213
.addPanel(
214
214
$.panel('Queue Length' ) +
215
- $.queryPanel($.rulerQueries.notifications.queue % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )], '{{ user }}' )
215
+ $.queryPanel($.rulerQueries.notifications.queue % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)], '{{ user }}' )
216
216
)
217
217
.addPanel(
218
218
$.panel('Dropped' ) +
219
- $.queryPanel($.rulerQueries.notifications.dropped % $.jobMatcher(' ruler' ), '{{ user }}' )
219
+ $.queryPanel($.rulerQueries.notifications.dropped % $.jobMatcher($._config.job_names. ruler), '{{ user }}' )
220
220
)
221
221
)
222
222
.addRow(
223
223
($.row('Group Evaluations' ) + { collapse: true })
224
224
.addPanel(
225
225
$.panel('Missed Iterations' ) +
226
- $.queryPanel($.rulerQueries.groupEvaluations.missedIterations % $.jobMatcher(' ruler' ), '{{ user }}' ),
226
+ $.queryPanel($.rulerQueries.groupEvaluations.missedIterations % $.jobMatcher($._config.job_names. ruler), '{{ user }}' ),
227
227
)
228
228
.addPanel(
229
229
$.panel('Latency' ) +
230
230
$.queryPanel(
231
- $.rulerQueries.groupEvaluations.latency % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )],
231
+ $.rulerQueries.groupEvaluations.latency % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)],
232
232
'{{ user }}'
233
233
),
234
234
)
235
235
.addPanel(
236
236
$.panel('Failures' ) +
237
237
$.queryPanel(
238
- $.rulerQueries.perUserPerGroupEvaluations.failure % [$.jobMatcher(' ruler' )], '{{ rule_group }}'
238
+ $.rulerQueries.perUserPerGroupEvaluations.failure % [$.jobMatcher($._config.job_names. ruler)], '{{ rule_group }}'
239
239
)
240
240
)
241
241
)
@@ -244,7 +244,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
244
244
.addPanel(
245
245
$.panel('Latency' ) +
246
246
$.queryPanel(
247
- $.rulerQueries.perUserPerGroupEvaluations.latency % [$.jobMatcher(' ruler' ), $.jobMatcher(' ruler' )],
247
+ $.rulerQueries.perUserPerGroupEvaluations.latency % [$.jobMatcher($._config.job_names. ruler), $.jobMatcher($._config.job_names. ruler)],
248
248
'{{ user }}'
249
249
)
250
250
)
0 commit comments