@@ -19,7 +19,6 @@ def self.allow_pid_label
1919 DURATION_BUCKETS = [ 5 , 10 , 30 , 60 , 300 , 600 , 890 ] . freeze
2020 CONNECTION_DURATION_BUCKETS = [ 0.001 , 0.005 , 0.01 , 0.05 , 0.1 , 0.5 , 1 , 5 , 10 ] . freeze
2121 DELAYED_JOB_METRIC_BUCKETS = [ 0.01 , 0.05 , 0.1 , 0.5 , 1 , 2 , 5 , 10 , 30 , 60 , 120 , 300 , 600 ] . freeze
22- DB_QUERY_BUCKETS = [ 1 , 2 , 5 , 10 , 20 , 50 , 100 ] . freeze
2322
2423 METRICS = [
2524 { type : :gauge , name : :cc_job_queues_length_total , docstring : 'Job queues length of worker processes' , labels : [ :queue ] , aggregation : :most_recent } ,
@@ -30,7 +29,6 @@ def self.allow_pid_label
3029 { type : :histogram , name : :cc_staging_failed_duration_seconds , docstring : 'Durations of failed staging events' , buckets : DURATION_BUCKETS } ,
3130 { type : :gauge , name : :cc_requests_outstanding_total , docstring : 'Requests outstanding' , aggregation : :sum } ,
3231 { type : :counter , name : :cc_requests_completed_total , docstring : 'Requests completed' } ,
33- { type : :histogram , name : :cc_request_db_queries_total , docstring : 'Database queries per request' , buckets : DB_QUERY_BUCKETS } ,
3432 { type : :gauge , name : :cc_vitals_started_at , docstring : 'CloudController Vitals: started_at' , aggregation : :most_recent } ,
3533 { type : :gauge , name : :cc_vitals_mem_bytes , docstring : 'CloudController Vitals: mem_bytes' , aggregation : :most_recent } ,
3634 { type : :gauge , name : :cc_vitals_cpu_load_avg , docstring : 'CloudController Vitals: cpu_load_avg' , aggregation : :most_recent } ,
@@ -126,10 +124,6 @@ def update_user_count(user_count)
126124 update_gauge_metric ( :cc_users_total , user_count )
127125 end
128126
129- def update_db_query_count ( query_count )
130- update_histogram_metric ( :cc_request_db_queries_total , query_count )
131- end
132-
133127 def update_job_queue_length ( pending_job_count_by_queue )
134128 pending_job_count_by_queue . each do |key , value |
135129 update_gauge_metric ( :cc_job_queues_length_total , value , labels : { queue : key . to_s . underscore } )
0 commit comments