Skip to content

Commit

Permalink
koordlet: change CollectContainerThrottledMetric with duration=2*coll…
Browse files Browse the repository at this point in the history
…ectoInterval (#2054)

Signed-off-by: 佑祎 <zzw261520@alibaba-inc.com>
  • Loading branch information
zwzhang0107 committed May 21, 2024
1 parent 4bdcd66 commit eed98fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/koordlet/qosmanager/helpers/metrics_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func CollectContainerThrottledMetric(metricCache metriccache.MetricCache, contai
}

queryEndTime := time.Now()
queryStartTime := queryEndTime.Add(-metricCollectInterval)
queryStartTime := queryEndTime.Add(-metricCollectInterval * 2)
querier, err := metricCache.Querier(queryStartTime, queryEndTime)
if err != nil {
return nil, err
Expand Down

0 comments on commit eed98fa

Please sign in to comment.