@@ -705,8 +705,8 @@ module VCAP::CloudController::Metrics
705705 stats_hash = {
706706 booted_workers : 2 ,
707707 worker_status : [
708- { started_at : '2023-11-29T13:15:05Z' , index : 0 , pid : 123 , last_status : { running : 1 , backlog : 0 } } ,
709- { started_at : '2023-11-29T13:15:10Z' , index : 1 , pid : 234 , last_status : { running : 2 , backlog : 1 } }
708+ { started_at : '2023-11-29T13:15:05Z' , index : 0 , pid : 123 , last_status : { running : 1 , backlog : 0 , busy_threads : 0 , pool_capacity : 1 , requests_count : 9 } } ,
709+ { started_at : '2023-11-29T13:15:10Z' , index : 1 , pid : 234 , last_status : { running : 2 , backlog : 1 , busy_threads : 1 , pool_capacity : 2 , requests_count : 10 } }
710710 ]
711711 }
712712 allow ( Puma ) . to receive ( :stats_hash ) . and_return ( stats_hash )
@@ -715,8 +715,8 @@ module VCAP::CloudController::Metrics
715715
716716 expected_worker_count = 2
717717 expected_worker_stats = [
718- { started_at : 1_701_263_705 , index : 0 , pid : 123 , thread_count : 1 , backlog : 0 } ,
719- { started_at : 1_701_263_710 , index : 1 , pid : 234 , thread_count : 2 , backlog : 1 }
718+ { started_at : 1_701_263_705 , index : 0 , pid : 123 , thread_count : 1 , backlog : 0 , busy_threads : 0 , pool_capacity : 1 , requests_count : 9 } ,
719+ { started_at : 1_701_263_710 , index : 1 , pid : 234 , thread_count : 2 , backlog : 1 , busy_threads : 1 , pool_capacity : 2 , requests_count : 10 }
720720 ]
721721 expect ( prometheus_updater ) . to have_received ( :update_webserver_stats_puma ) . with ( expected_worker_count , expected_worker_stats )
722722 end
0 commit comments