@@ -60,6 +60,8 @@ type alertmanagerMetrics struct {
60
60
persistFailed * prometheus.Desc
61
61
62
62
notificationRateLimited * prometheus.Desc
63
+ dispatcherAggregationGroups * prometheus.Desc
64
+ dispatcherProcessingDuration * prometheus.Desc
63
65
dispatcherAggregationGroupsLimitReached * prometheus.Desc
64
66
insertAlertFailures * prometheus.Desc
65
67
alertsLimiterAlertsCount * prometheus.Desc
@@ -217,6 +219,14 @@ func newAlertmanagerMetrics() *alertmanagerMetrics {
217
219
"cortex_alertmanager_dispatcher_aggregation_group_limit_reached_total" ,
218
220
"Number of times when dispatcher failed to create new aggregation group due to limit." ,
219
221
[]string {"user" }, nil ),
222
+ dispatcherAggregationGroups : prometheus .NewDesc (
223
+ "cortex_alertmanager_dispatcher_aggregation_groups" ,
224
+ "Number of active aggregation groups." ,
225
+ []string {"user" }, nil ),
226
+ dispatcherProcessingDuration : prometheus .NewDesc (
227
+ "cortex_alertmanager_dispatcher_alert_processing_duration_seconds" ,
228
+ "Summary of latencies for the processing of alerts." ,
229
+ []string {"user" }, nil ),
220
230
insertAlertFailures : prometheus .NewDesc (
221
231
"cortex_alertmanager_alerts_insert_limited_total" ,
222
232
"Total number of failures to store alert due to hitting alertmanager limits." ,
@@ -279,6 +289,8 @@ func (m *alertmanagerMetrics) Describe(out chan<- *prometheus.Desc) {
279
289
out <- m .persistTotal
280
290
out <- m .persistFailed
281
291
out <- m .notificationRateLimited
292
+ out <- m .dispatcherAggregationGroups
293
+ out <- m .dispatcherProcessingDuration
282
294
out <- m .dispatcherAggregationGroupsLimitReached
283
295
out <- m .insertAlertFailures
284
296
out <- m .alertsLimiterAlertsCount
@@ -330,6 +342,8 @@ func (m *alertmanagerMetrics) Collect(out chan<- prometheus.Metric) {
330
342
data .SendSumOfCounters (out , m .persistFailed , "alertmanager_state_persist_failed_total" )
331
343
332
344
data .SendSumOfCountersPerUserWithLabels (out , m .notificationRateLimited , "alertmanager_notification_rate_limited_total" , "integration" )
345
+ data .SendSumOfGaugesPerUser (out , m .dispatcherAggregationGroups , "alertmanager_dispatcher_aggregation_groups" )
346
+ data .SendSumOfSummariesPerUser (out , m .dispatcherProcessingDuration , "alertmanager_dispatcher_alert_processing_duration_seconds" )
333
347
data .SendSumOfCountersPerUser (out , m .dispatcherAggregationGroupsLimitReached , "alertmanager_dispatcher_aggregation_group_limit_reached_total" )
334
348
data .SendSumOfCountersPerUser (out , m .insertAlertFailures , "alertmanager_alerts_insert_limited_total" )
335
349
data .SendSumOfGaugesPerUser (out , m .alertsLimiterAlertsCount , "alertmanager_alerts_limiter_current_alerts" )
0 commit comments