kubernetes-sigs / karpenter

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
Apache License 2.0
637 stars 206 forks source link

feat: add pod acknowledged time metric #1803

Closed njtran closed 1 week ago

njtran commented 1 week ago

Fixes #N/A

Description Keeps track of pods in cluster state depending on work we've made towards scheduling the pod.

This will emit metrics that detail:

This also changes a metric name (can change since it hasn't been released yet):

How was this change tested? make presubmit

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

coveralls commented 1 week ago

Pull Request Test Coverage Report for Build 11850563098

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controllers/controllers.go 0 1 0.0%
<!-- Total: 132 133 99.25% -->
Files with Coverage Reduction New Missed Lines %
pkg/utils/nodeclaim/nodeclaim.go 2 37.07%
pkg/controllers/controllers.go 3 0.0%
pkg/controllers/nodeclaim/lifecycle/launch.go 4 93.1%
pkg/controllers/provisioning/scheduling/scheduler.go 4 95.18%
pkg/controllers/nodeclaim/lifecycle/initialization.go 8 86.11%
pkg/controllers/nodeclaim/lifecycle/controller.go 12 71.07%
<!-- Total: 33 -->
Totals Coverage Status
Change from base Build 11749223840: 0.2%
Covered Lines: 8601
Relevant Lines: 10612

💛 - Coveralls
k8s-ci-robot commented 1 week ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jonathan-innis, njtran

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-sigs/karpenter/blob/main/OWNERS)~~ [jonathan-innis,njtran] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment