Skip to content

Commit

Permalink
chore: Convert karpenter_scheduler_unfinished_work_seconds to secon…
Browse files Browse the repository at this point in the history
…ds (#1812)
  • Loading branch information
jonathan-innis authored Nov 15, 2024
1 parent 7786f76 commit 0e4fc74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/scheduling/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (s *Scheduler) Solve(ctx context.Context, pods []*corev1.Pod) Results {
lastLogTime := s.clock.Now()
batchSize := len(q.pods)
for {
UnfinishedWorkSeconds.Set(float64(s.clock.Since(startTime)), map[string]string{ControllerLabel: injection.GetControllerName(ctx), schedulingIDLabel: string(s.id)})
UnfinishedWorkSeconds.Set(s.clock.Since(startTime).Seconds(), map[string]string{ControllerLabel: injection.GetControllerName(ctx), schedulingIDLabel: string(s.id)})
QueueDepth.Set(float64(len(q.pods)), map[string]string{ControllerLabel: injection.GetControllerName(ctx), schedulingIDLabel: string(s.id)})

if s.clock.Since(lastLogTime) > time.Minute {
Expand Down

0 comments on commit 0e4fc74

Please sign in to comment.