@@ -48,9 +48,12 @@ func TestAlertmanagerMetricsStore(t *testing.T) {
48
48
cortex_alertmanager_alerts_invalid_total{user="user3"} 200
49
49
# HELP cortex_alertmanager_alerts_received_total The total number of received alerts.
50
50
# TYPE cortex_alertmanager_alerts_received_total counter
51
- cortex_alertmanager_alerts_received_total{user="user1"} 10
52
- cortex_alertmanager_alerts_received_total{user="user2"} 100
53
- cortex_alertmanager_alerts_received_total{user="user3"} 1000
51
+ cortex_alertmanager_alerts_received_total{status="firing",user="user1"} 4
52
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user1"} 6
53
+ cortex_alertmanager_alerts_received_total{status="firing",user="user2"} 40
54
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user2"} 60
55
+ cortex_alertmanager_alerts_received_total{status="firing",user="user3"} 400
56
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user3"} 600
54
57
# HELP cortex_alertmanager_config_hash Hash of the currently loaded alertmanager configuration.
55
58
# TYPE cortex_alertmanager_config_hash gauge
56
59
cortex_alertmanager_config_hash{user="user1"} 0
@@ -327,9 +330,12 @@ func TestAlertmanagerMetricsRemoval(t *testing.T) {
327
330
328
331
# HELP cortex_alertmanager_alerts_received_total The total number of received alerts.
329
332
# TYPE cortex_alertmanager_alerts_received_total counter
330
- cortex_alertmanager_alerts_received_total{user="user1"} 10
331
- cortex_alertmanager_alerts_received_total{user="user2"} 100
332
- cortex_alertmanager_alerts_received_total{user="user3"} 1000
333
+ cortex_alertmanager_alerts_received_total{status="firing",user="user1"} 4
334
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user1"} 6
335
+ cortex_alertmanager_alerts_received_total{status="firing",user="user2"} 40
336
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user2"} 60
337
+ cortex_alertmanager_alerts_received_total{status="firing",user="user3"} 400
338
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user3"} 600
333
339
334
340
# HELP cortex_alertmanager_config_hash Hash of the currently loaded alertmanager configuration.
335
341
# TYPE cortex_alertmanager_config_hash gauge
@@ -611,8 +617,10 @@ func TestAlertmanagerMetricsRemoval(t *testing.T) {
611
617
612
618
# HELP cortex_alertmanager_alerts_received_total The total number of received alerts.
613
619
# TYPE cortex_alertmanager_alerts_received_total counter
614
- cortex_alertmanager_alerts_received_total{user="user1"} 10
615
- cortex_alertmanager_alerts_received_total{user="user2"} 100
620
+ cortex_alertmanager_alerts_received_total{status="firing",user="user1"} 4
621
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user1"} 6
622
+ cortex_alertmanager_alerts_received_total{status="firing",user="user2"} 40
623
+ cortex_alertmanager_alerts_received_total{status="resolved",user="user2"} 60
616
624
617
625
# HELP cortex_alertmanager_config_hash Hash of the currently loaded alertmanager configuration.
618
626
# TYPE cortex_alertmanager_config_hash gauge
0 commit comments