@@ -254,11 +254,26 @@ func TestAlertmanagerMetricsStore(t *testing.T) {
254
254
# HELP cortex_alertmanager_silences_snapshot_size_bytes Size of the last silence snapshot in bytes.
255
255
# TYPE cortex_alertmanager_silences_snapshot_size_bytes gauge
256
256
cortex_alertmanager_silences_snapshot_size_bytes 111
257
+ # HELP cortex_alertmanager_state_fetch_replica_state_failed_total Number of times we have failed to read and merge the full state from another replica.
258
+ # TYPE cortex_alertmanager_state_fetch_replica_state_failed_total counter
259
+ cortex_alertmanager_state_fetch_replica_state_failed_total 0
260
+ # HELP cortex_alertmanager_state_fetch_replica_state_total Number of times we have tried to read and merge the full state from another replica.
261
+ # TYPE cortex_alertmanager_state_fetch_replica_state_total counter
262
+ cortex_alertmanager_state_fetch_replica_state_total 0
257
263
# HELP cortex_alertmanager_state_initial_sync_duration_seconds Time spent syncing initial state from peers or storage.
258
264
# TYPE cortex_alertmanager_state_initial_sync_duration_seconds histogram
259
265
cortex_alertmanager_state_initial_sync_duration_seconds_bucket{le="+Inf"} 0
260
266
cortex_alertmanager_state_initial_sync_duration_seconds_sum 0
261
267
cortex_alertmanager_state_initial_sync_duration_seconds_count 0
268
+ # HELP cortex_alertmanager_state_initial_sync_total Number of times we have tried to sync initial state from peers or storage.
269
+ # TYPE cortex_alertmanager_state_initial_sync_total counter
270
+ cortex_alertmanager_state_initial_sync_total 0
271
+ # HELP cortex_alertmanager_state_persist_failed_total Number of times we have failed to persist the running state to storage.
272
+ # TYPE cortex_alertmanager_state_persist_failed_total counter
273
+ cortex_alertmanager_state_persist_failed_total 0
274
+ # HELP cortex_alertmanager_state_persist_total Number of times we have tried to persist the running state to storage.
275
+ # TYPE cortex_alertmanager_state_persist_total counter
276
+ cortex_alertmanager_state_persist_total 0
262
277
` ))
263
278
require .NoError (t , err )
264
279
}
@@ -522,11 +537,26 @@ func TestAlertmanagerMetricsRemoval(t *testing.T) {
522
537
# HELP cortex_alertmanager_silences_snapshot_size_bytes Size of the last silence snapshot in bytes.
523
538
# TYPE cortex_alertmanager_silences_snapshot_size_bytes gauge
524
539
cortex_alertmanager_silences_snapshot_size_bytes 111
540
+ # HELP cortex_alertmanager_state_fetch_replica_state_failed_total Number of times we have failed to read and merge the full state from another replica.
541
+ # TYPE cortex_alertmanager_state_fetch_replica_state_failed_total counter
542
+ cortex_alertmanager_state_fetch_replica_state_failed_total 0
543
+ # HELP cortex_alertmanager_state_fetch_replica_state_total Number of times we have tried to read and merge the full state from another replica.
544
+ # TYPE cortex_alertmanager_state_fetch_replica_state_total counter
545
+ cortex_alertmanager_state_fetch_replica_state_total 0
525
546
# HELP cortex_alertmanager_state_initial_sync_duration_seconds Time spent syncing initial state from peers or storage.
526
547
# TYPE cortex_alertmanager_state_initial_sync_duration_seconds histogram
527
548
cortex_alertmanager_state_initial_sync_duration_seconds_bucket{le="+Inf"} 0
528
549
cortex_alertmanager_state_initial_sync_duration_seconds_sum 0
529
550
cortex_alertmanager_state_initial_sync_duration_seconds_count 0
551
+ # HELP cortex_alertmanager_state_initial_sync_total Number of times we have tried to sync initial state from peers or storage.
552
+ # TYPE cortex_alertmanager_state_initial_sync_total counter
553
+ cortex_alertmanager_state_initial_sync_total 0
554
+ # HELP cortex_alertmanager_state_persist_failed_total Number of times we have failed to persist the running state to storage.
555
+ # TYPE cortex_alertmanager_state_persist_failed_total counter
556
+ cortex_alertmanager_state_persist_failed_total 0
557
+ # HELP cortex_alertmanager_state_persist_total Number of times we have tried to persist the running state to storage.
558
+ # TYPE cortex_alertmanager_state_persist_total counter
559
+ cortex_alertmanager_state_persist_total 0
530
560
` ))
531
561
require .NoError (t , err )
532
562
@@ -738,11 +768,26 @@ func TestAlertmanagerMetricsRemoval(t *testing.T) {
738
768
# TYPE cortex_alertmanager_silences_snapshot_size_bytes gauge
739
769
cortex_alertmanager_silences_snapshot_size_bytes 11
740
770
771
+ # HELP cortex_alertmanager_state_fetch_replica_state_failed_total Number of times we have failed to read and merge the full state from another replica.
772
+ # TYPE cortex_alertmanager_state_fetch_replica_state_failed_total counter
773
+ cortex_alertmanager_state_fetch_replica_state_failed_total 0
774
+ # HELP cortex_alertmanager_state_fetch_replica_state_total Number of times we have tried to read and merge the full state from another replica.
775
+ # TYPE cortex_alertmanager_state_fetch_replica_state_total counter
776
+ cortex_alertmanager_state_fetch_replica_state_total 0
741
777
# HELP cortex_alertmanager_state_initial_sync_duration_seconds Time spent syncing initial state from peers or storage.
742
778
# TYPE cortex_alertmanager_state_initial_sync_duration_seconds histogram
743
779
cortex_alertmanager_state_initial_sync_duration_seconds_bucket{le="+Inf"} 0
744
780
cortex_alertmanager_state_initial_sync_duration_seconds_sum 0
745
781
cortex_alertmanager_state_initial_sync_duration_seconds_count 0
782
+ # HELP cortex_alertmanager_state_initial_sync_total Number of times we have tried to sync initial state from peers or storage.
783
+ # TYPE cortex_alertmanager_state_initial_sync_total counter
784
+ cortex_alertmanager_state_initial_sync_total 0
785
+ # HELP cortex_alertmanager_state_persist_failed_total Number of times we have failed to persist the running state to storage.
786
+ # TYPE cortex_alertmanager_state_persist_failed_total counter
787
+ cortex_alertmanager_state_persist_failed_total 0
788
+ # HELP cortex_alertmanager_state_persist_total Number of times we have tried to persist the running state to storage.
789
+ # TYPE cortex_alertmanager_state_persist_total counter
790
+ cortex_alertmanager_state_persist_total 0
746
791
` ))
747
792
require .NoError (t , err )
748
793
}
0 commit comments