@@ -965,7 +965,6 @@ func TestMultitenantCompactor_ShouldNotCompactBlocksForUsersMarkedForDeletion(t
965965 "cortex_compactor_runs_started_total" , "cortex_compactor_runs_completed_total" , "cortex_compactor_runs_failed_total" ,
966966 "cortex_compactor_blocks_cleaned_total" , "cortex_compactor_block_cleanup_failures_total" , "cortex_compactor_blocks_marked_for_deletion_total" ,
967967 "cortex_compactor_block_cleanup_started_total" , "cortex_compactor_block_cleanup_completed_total" , "cortex_compactor_block_cleanup_failed_total" ,
968- "cortex_bucket_blocks_count" , "cortex_bucket_blocks_marked_for_deletion_count" , "cortex_bucket_index_last_successful_update_timestamp_seconds" ,
969968 }
970969 assert .NoError (t , prom_testutil .GatherAndCompare (registry , strings .NewReader (`
971970 # TYPE cortex_compactor_runs_started_total counter
@@ -1007,6 +1006,12 @@ func TestMultitenantCompactor_ShouldNotCompactBlocksForUsersMarkedForDeletion(t
10071006 # HELP cortex_compactor_block_cleanup_failed_total Total number of blocks cleanup runs failed.
10081007 cortex_compactor_block_cleanup_failed_total 0
10091008 ` ), testedMetrics ... ))
1009+ assert .ErrorContains (t , prom_testutil .GatherAndCompare (registry , strings .NewReader ("" ),
1010+ "cortex_bucket_blocks_count" ,
1011+ "cortex_bucket_blocks_marked_for_deletion_count" ,
1012+ "cortex_bucket_index_last_successful_update_timestamp_seconds" ),
1013+ "expected metric name(s) not found" ,
1014+ )
10101015}
10111016
10121017func TestMultitenantCompactor_ShouldCompactAllUsersOnShardingEnabledButOnlyOneInstanceRunning (t * testing.T ) {
0 commit comments