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

feat(metrics): add metrics from cloud-provider library #824

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

apricote
Copy link
Member

This includes metrics about internal operations from k8s.io/cloud-provider like the workqueue depth and requests to the Kubernetes API.

This metrics were already exposed on :8233/metrics but this was not documented or scraped.

This commit now uses the same registry for our metrics and the Kubernetes libraries, and also exposes them on both ports for backwards compatibility.

Besides having all data available, this will also help us with debugging #661.

@apricote apricote added the enhancement New feature or request label Dec 12, 2024
@apricote apricote self-assigned this Dec 12, 2024
@apricote apricote requested a review from a team as a code owner December 12, 2024 11:21
This includes metrics about internal operations from
`k8s.io/cloud-provider` like the workqueue depth and requests to the
Kubernetes API.

This metrics were already exposed on `:8233/metrics` but this was not
documented or scraped.

This commit now uses the same registry for our metrics and the
kubernetes libraries, and also exposes them on both ports for backwards
compatibility.

Co-authored-by: Lukas Metzner <lukas.metzner@hetzner-cloud.de>
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.56%. Comparing base (a7c46f2) to head (e8a555b).

Files with missing lines Patch % Lines
internal/metrics/metrics.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #824      +/-   ##
==========================================
- Coverage   70.56%   70.56%   -0.01%     
==========================================
  Files          31       31              
  Lines        3289     3285       -4     
==========================================
- Hits         2321     2318       -3     
+ Misses        794      793       -1     
  Partials      174      174              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lukasmetzner lukasmetzner merged commit e8341af into main Dec 16, 2024
9 checks passed
@lukasmetzner lukasmetzner deleted the kubernetes-metrics branch December 16, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants