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 more kubectl metrics #21720

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

crenshaw-dev
Copy link
Member

Very much a PoC. I noticed client-go provides some metrics we're not yet surfacing. I'm not a metrics wonk, so I'm not sure how the cost of these metrics compares to the value. I tried to keep cardinality low where possible. Please let me know your thoughts!

Copy link

bunnyshell bot commented Jan 30, 2025

🔴 Preview Environment stopped on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🔵 /bns:start to start the environment
  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Name: "argocd_kubectl_transport_create_calls_total",
Help: "Number of kubectl transport create calls",
},
[]string{"initiator", "result"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the value the "result" label will have?

util/metrics/kubectl_metrics.go Outdated Show resolved Hide resolved
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
…d it'll probably be fine anyway

Signed-off-by: Michael Crenshaw <[email protected]>
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 84.42623% with 19 lines in your changes missing coverage. Please review.

Project coverage is 55.73%. Comparing base (6f5537b) to head (58989be).
Report is 16 commits behind head on master.

Files with missing lines Patch % Lines
util/metrics/kubectl/kubectl_metrics.go 75.67% 18 Missing ⚠️
util/metrics/kubectl/util.go 96.77% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21720      +/-   ##
==========================================
+ Coverage   55.59%   55.73%   +0.14%     
==========================================
  Files         339      341       +2     
  Lines       57346    56922     -424     
==========================================
- Hits        31881    31727     -154     
+ Misses      22784    22546     -238     
+ Partials     2681     2649      -32     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants