@@ -10,22 +10,22 @@ local utils = import 'mixin-utils/utils.libsonnet';
10
10
showTitle: false ,
11
11
})
12
12
.addPanel(
13
- $.panel ('Total Alerts' ) +
13
+ $.timeseriesPanel ('Total Alerts' ) +
14
14
$.statPanel('sum(cluster_job_%s:cortex_alertmanager_alerts:sum{%s})' % [$._config.per_instance_label, $.jobMatcher($._config.job_names.alertmanager)], format='short' )
15
15
)
16
16
.addPanel(
17
- $.panel ('Total Silences' ) +
17
+ $.timeseriesPanel ('Total Silences' ) +
18
18
$.statPanel('sum(cluster_job_%s:cortex_alertmanager_silences:sum{%s})' % [$._config.per_instance_label, $.jobMatcher($._config.job_names.alertmanager)], format='short' )
19
19
)
20
20
.addPanel(
21
- $.panel ('Tenants' ) +
21
+ $.timeseriesPanel ('Tenants' ) +
22
22
$.statPanel('max(cortex_alertmanager_tenants_discovered{%s})' % $.jobMatcher($._config.job_names.alertmanager), format='short' )
23
23
)
24
24
)
25
25
.addRow(
26
26
$.row('Alerts Received' )
27
27
.addPanel(
28
- $.panel ('APS' ) +
28
+ $.timeseriesPanel ('APS' ) +
29
29
$.queryPanel(
30
30
[
31
31
|||
@@ -42,7 +42,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
42
42
.addRow(
43
43
$.row('Alert Notifications' )
44
44
.addPanel(
45
- $.panel ('NPS' ) +
45
+ $.timeseriesPanel ('NPS' ) +
46
46
$.queryPanel(
47
47
[
48
48
|||
@@ -56,7 +56,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
56
56
)
57
57
)
58
58
.addPanel(
59
- $.panel ('NPS by integration' ) +
59
+ $.timeseriesPanel ('NPS by integration' ) +
60
60
$.queryPanel(
61
61
[
62
62
|||
@@ -73,18 +73,18 @@ local utils = import 'mixin-utils/utils.libsonnet';
73
73
)
74
74
)
75
75
.addPanel(
76
- $.panel ('Latency' ) +
76
+ $.timeseriesPanel ('Latency' ) +
77
77
$.latencyPanel('cortex_alertmanager_notification_latency_seconds' , '{%s}' % $.jobMatcher($._config.job_names.alertmanager))
78
78
)
79
79
)
80
80
.addRow(
81
81
$.row('Configuration API (gateway) + Alertmanager UI' )
82
82
.addPanel(
83
- $.panel ('QPS' ) +
83
+ $.timeseriesPanel ('QPS' ) +
84
84
$.qpsPanel('cortex_request_duration_seconds_count{%s, route=~"api_v1_alerts|alertmanager"}' % $.jobMatcher($._config.job_names.gateway))
85
85
)
86
86
.addPanel(
87
- $.panel ('Latency' ) +
87
+ $.timeseriesPanel ('Latency' ) +
88
88
utils.latencyRecordingRulePanel('cortex_request_duration_seconds' , $.jobSelector($._config.job_names.gateway) + [utils.selector.re('route' , 'api_v1_alerts|alertmanager' )])
89
89
)
90
90
)
@@ -94,23 +94,23 @@ local utils = import 'mixin-utils/utils.libsonnet';
94
94
.addRow(
95
95
$.row('Replication' )
96
96
.addPanel(
97
- $.panel ('Per %s Tenants' % $._config.per_instance_label) +
97
+ $.timeseriesPanel ('Per %s Tenants' % $._config.per_instance_label) +
98
98
$.queryPanel(
99
99
'max by(%s) (cortex_alertmanager_tenants_owned{%s})' % [$._config.per_instance_label, $.jobMatcher($._config.job_names.alertmanager)],
100
100
'{{%s}}' % $._config.per_instance_label
101
101
) +
102
102
$.stack
103
103
)
104
104
.addPanel(
105
- $.panel ('Per %s Alerts' % $._config.per_instance_label) +
105
+ $.timeseriesPanel ('Per %s Alerts' % $._config.per_instance_label) +
106
106
$.queryPanel(
107
107
'sum by(%s) (cluster_job_%s:cortex_alertmanager_alerts:sum{%s})' % [$._config.per_instance_label, $._config.per_instance_label, $.jobMatcher($._config.job_names.alertmanager)],
108
108
'{{%s}}' % $._config.per_instance_label
109
109
) +
110
110
$.stack
111
111
)
112
112
.addPanel(
113
- $.panel ('Per %s Silences' % $._config.per_instance_label) +
113
+ $.timeseriesPanel ('Per %s Silences' % $._config.per_instance_label) +
114
114
$.queryPanel(
115
115
'sum by(%s) (cluster_job_%s:cortex_alertmanager_silences:sum{%s})' % [$._config.per_instance_label, $._config.per_instance_label, $.jobMatcher($._config.job_names.alertmanager)],
116
116
'{{%s}}' % $._config.per_instance_label
@@ -121,7 +121,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
121
121
.addRow(
122
122
$.row('Tenant Configuration Sync' )
123
123
.addPanel(
124
- $.panel ('Syncs/sec' ) +
124
+ $.timeseriesPanel ('Syncs/sec' ) +
125
125
$.queryPanel(
126
126
[
127
127
|||
@@ -135,14 +135,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
135
135
)
136
136
)
137
137
.addPanel(
138
- $.panel ('Syncs/sec (By Reason)' ) +
138
+ $.timeseriesPanel ('Syncs/sec (By Reason)' ) +
139
139
$.queryPanel(
140
140
'sum by(reason) (rate(cortex_alertmanager_sync_configs_total{%s}[$__rate_interval]))' % $.jobMatcher($._config.job_names.alertmanager),
141
141
'{{reason}}'
142
142
)
143
143
)
144
144
.addPanel(
145
- $.panel ('Ring Check Errors/sec' ) +
145
+ $.timeseriesPanel ('Ring Check Errors/sec' ) +
146
146
$.queryPanel(
147
147
'sum (rate(cortex_alertmanager_ring_check_errors_total{%s}[$__rate_interval]))' % $.jobMatcher($._config.job_names.alertmanager),
148
148
'errors'
@@ -152,7 +152,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
152
152
.addRow(
153
153
$.row('Sharding Initial State Sync' )
154
154
.addPanel(
155
- $.panel ('Initial syncs /sec' ) +
155
+ $.timeseriesPanel ('Initial syncs /sec' ) +
156
156
$.queryPanel(
157
157
'sum by(outcome) (rate(cortex_alertmanager_state_initial_sync_completed_total{%s}[$__rate_interval]))' % $.jobMatcher($._config.job_names.alertmanager),
158
158
'{{outcome}}'
@@ -166,7 +166,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
166
166
}
167
167
)
168
168
.addPanel(
169
- $.panel ('Initial sync duration' ) +
169
+ $.timeseriesPanel ('Initial sync duration' ) +
170
170
$.latencyPanel('cortex_alertmanager_state_initial_sync_duration_seconds' , '{%s}' % $.jobMatcher($._config.job_names.alertmanager)) + {
171
171
targets: [
172
172
target {
@@ -177,7 +177,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
177
177
}
178
178
)
179
179
.addPanel(
180
- $.panel ('Fetch state from other alertmanagers /sec' ) +
180
+ $.timeseriesPanel ('Fetch state from other alertmanagers /sec' ) +
181
181
$.queryPanel(
182
182
[
183
183
|||
@@ -201,7 +201,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
201
201
.addRow(
202
202
$.row('Sharding Runtime State Sync' )
203
203
.addPanel(
204
- $.panel ('Replicate state to other alertmanagers /sec' ) +
204
+ $.timeseriesPanel ('Replicate state to other alertmanagers /sec' ) +
205
205
$.queryPanel(
206
206
[
207
207
|||
@@ -215,7 +215,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
215
215
)
216
216
)
217
217
.addPanel(
218
- $.panel ('Merge state from other alertmanagers /sec' ) +
218
+ $.timeseriesPanel ('Merge state from other alertmanagers /sec' ) +
219
219
$.queryPanel(
220
220
[
221
221
|||
@@ -229,7 +229,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
229
229
)
230
230
)
231
231
.addPanel(
232
- $.panel ('Persist state to remote storage /sec' ) +
232
+ $.timeseriesPanel ('Persist state to remote storage /sec' ) +
233
233
$.queryPanel(
234
234
[
235
235
|||
0 commit comments