Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add queue depth metrics for provisioning and termination #1060

Merged

Conversation

jonathan-innis
Copy link
Member

Fixes #N/A

Description

This changes adds the karpenter_nodes_eviction_queue_depth and karpenter_provisioner_scheduling_queue_depth to give metrics on the number of items that are currently in these queues. This will allow us to get better insight into how quickly we are processing through items and also to know if we are making progress.

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.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 4, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 4, 2024
@jonathan-innis jonathan-innis force-pushed the add-queue-depth-metrics branch 2 times, most recently from deab3d8 to bca6d51 Compare March 4, 2024 02:16
@coveralls
Copy link

coveralls commented Mar 4, 2024

Pull Request Test Coverage Report for Build 8152913054

Details

  • 19 of 20 (95.0%) changed or added relevant lines in 9 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.05%) to 81.094%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/operator/controller/singleton.go 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/controllers/provisioning/scheduling/nodeclaim.go 2 91.53%
Totals Coverage Status
Change from base Build 8148707044: 0.05%
Covered Lines: 8180
Relevant Lines: 10087

💛 - Coveralls

)

var (
schedulingSimulationDuration = prometheus.NewHistogramVec(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add testing to ensure this metrics are working as expected?

@jonathan-innis jonathan-innis force-pushed the add-queue-depth-metrics branch 3 times, most recently from 97926d4 to b461789 Compare March 5, 2024 08:04
Copy link
Contributor

@engedaam engedaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 5, 2024
@k8s-ci-robot k8s-ci-robot merged commit 1489b70 into kubernetes-sigs:main Mar 5, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants