Skip to content

Commit

Permalink
Remove (ms) from panel and add as unit in request queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanbir Sohi committed Oct 17, 2023
1 parent 319696f commit 5b1b00f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ local utils = import '../utils/policy_utils.libsonnet';
function(cfg) {
local stringFilters = utils.dictToPrometheusFilter(cfg.dashboard.extra_filters { policy_name: cfg.policy.policy_name }),

local requestsDuration = barChartPanel('Requests in Queue Duration (ms)',
local requestsDuration = barChartPanel('Requests in Queue Duration',
cfg.dashboard.datasource.name,
'topk(10, (sum by(workload_index) (increase(request_in_queue_duration_ms_sum{%(filters)s}[$__range])) ) / ((sum by(workload_index) (increase(request_in_queue_duration_ms_count{%(filters)s}[$__range])) )) != 0)',
stringFilters,
instantQuery=true,
range=false,
unit=null),
unit='ms'),

panel: requestsDuration.panel,
}

0 comments on commit 5b1b00f

Please sign in to comment.