@@ -24,48 +24,6 @@ var QueueDistinctSchedulingKeysDesc = prometheus.NewDesc(
2424 nil ,
2525)
2626
27- var MinQueuePriceQueuedDesc = prometheus .NewDesc (
28- MetricPrefix + "queue_price_queued_min" ,
29- "Minimum price of queued jobs" ,
30- []string {"pool" , "priorityClass" , "queue" },
31- nil ,
32- )
33-
34- var MaxQueuePriceQueuedDesc = prometheus .NewDesc (
35- MetricPrefix + "queue_price_queued_max" ,
36- "Maximum price of queued jobs" ,
37- []string {"pool" , "priorityClass" , "queue" },
38- nil ,
39- )
40-
41- var MedianQueuePriceQueuedDesc = prometheus .NewDesc (
42- MetricPrefix + "queue_price_queued_median" ,
43- "Median price of queued jobs" ,
44- []string {"pool" , "priorityClass" , "queue" },
45- nil ,
46- )
47-
48- var MinQueuePriceRunningDesc = prometheus .NewDesc (
49- MetricPrefix + "queue_price_running_min" ,
50- "Minimum price of running jobs" ,
51- []string {"pool" , "priorityClass" , "queue" },
52- nil ,
53- )
54-
55- var MaxQueuePriceRunningDesc = prometheus .NewDesc (
56- MetricPrefix + "queue_price_running_max" ,
57- "Maximum price of running jobs" ,
58- []string {"pool" , "priorityClass" , "queue" },
59- nil ,
60- )
61-
62- var MedianQueuePriceRunningDesc = prometheus .NewDesc (
63- MetricPrefix + "queue_price_running_median" ,
64- "Median price of running jobs" ,
65- []string {"pool" , "priorityClass" , "queue" },
66- nil ,
67- )
68-
6927var QueueResourcesDesc = prometheus .NewDesc (
7028 MetricPrefix + "queue_resource_queued" ,
7129 "Resource required by queued jobs" ,
@@ -294,10 +252,6 @@ func CollectQueueMetrics(queueCounts map[string]int, queueDistinctSchedulingKeyC
294252 metrics = append (metrics , NewMedianQueueDuration (queueDurations .GetMedian (), m .Pool , m .PriorityClass , q ))
295253 }
296254
297- metrics = append (metrics , NewMinQueuePriceQueuedMetric (m .BidPrices .GetMin (), m .Pool , m .PriorityClass , q ))
298- metrics = append (metrics , NewMaxQueuePriceQueuedMetric (m .BidPrices .GetMax (), m .Pool , m .PriorityClass , q ))
299- metrics = append (metrics , NewMedianQueuePriceQueuedMetric (m .BidPrices .GetMedian (), m .Pool , m .PriorityClass , q ))
300-
301255 // Sort the keys so we get a predictable output order
302256 resources := maps .Keys (m .Resources )
303257 slices .Sort (resources )
@@ -323,10 +277,6 @@ func CollectQueueMetrics(queueCounts map[string]int, queueDistinctSchedulingKeyC
323277 metrics = append (metrics , NewMedianJobRunDuration (runningJobDurations .GetMedian (), m .Pool , m .PriorityClass , q ))
324278 }
325279
326- metrics = append (metrics , NewMinQueuePriceRunningMetric (m .BidPrices .GetMin (), m .Pool , m .PriorityClass , q ))
327- metrics = append (metrics , NewMaxQueuePriceRunningMetric (m .BidPrices .GetMax (), m .Pool , m .PriorityClass , q ))
328- metrics = append (metrics , NewMedianQueuePriceRunningMetric (m .BidPrices .GetMedian (), m .Pool , m .PriorityClass , q ))
329-
330280 // Sort the keys so we get a predicatable output order
331281 resources := maps .Keys (m .Resources )
332282 slices .Sort (resources )
@@ -448,30 +398,6 @@ func NewQueuePriorityMetric(value float64, queue string) prometheus.Metric {
448398 return prometheus .MustNewConstMetric (QueuePriorityDesc , prometheus .GaugeValue , value , queue , queue )
449399}
450400
451- func NewMinQueuePriceQueuedMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
452- return prometheus .MustNewConstMetric (MinQueuePriceQueuedDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
453- }
454-
455- func NewMaxQueuePriceQueuedMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
456- return prometheus .MustNewConstMetric (MaxQueuePriceQueuedDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
457- }
458-
459- func NewMedianQueuePriceQueuedMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
460- return prometheus .MustNewConstMetric (MedianQueuePriceQueuedDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
461- }
462-
463- func NewMinQueuePriceRunningMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
464- return prometheus .MustNewConstMetric (MinQueuePriceRunningDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
465- }
466-
467- func NewMaxQueuePriceRunningMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
468- return prometheus .MustNewConstMetric (MaxQueuePriceRunningDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
469- }
470-
471- func NewMedianQueuePriceRunningMetric (value float64 , pool string , priorityClass string , queue string ) prometheus.Metric {
472- return prometheus .MustNewConstMetric (MedianQueuePriceRunningDesc , prometheus .GaugeValue , value , pool , priorityClass , queue )
473- }
474-
475401func NewQueueLabelsMetric (queue string , labels map [string ]string ) prometheus.Metric {
476402 metricLabels := make ([]string , 0 , len (labels )+ len (queueLabelDefaultLabels ))
477403 values := make ([]string , 0 , len (labels )+ len (queueLabelDefaultLabels ))
0 commit comments