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

Test Coverage for Metrics #327

Open
7 tasks
jonathan-innis opened this issue May 5, 2023 · 0 comments
Open
7 tasks

Test Coverage for Metrics #327

jonathan-innis opened this issue May 5, 2023 · 0 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/testing Issues that involve adding test coverage operational-excellence

Comments

@jonathan-innis
Copy link
Member

jonathan-innis commented May 5, 2023

Tell us about your request

Right now, we don't have anything validating our karpenter_cloudprovider_duration or karpenter_cloudprovider_errors_total metric that would ensure that we are actually firing the metric when we expect to. We should add unit testing, using the FindMetricsWithLabelValues function to ensure that we are getting these metrics.

We should audit and do this for all the following folders and audit any folders in other Cloud provider repos as well.

  • pkg/cloudprovider/metrics
  • pkg/metrics
  • pkg/controllers/metrics
  • pkg/controllers/termination/terminator/metrics.go
  • pkg/controllers/provisioning/metrics.go
  • /pkg/controllers/consistency/metrics.go
  • /pkg/controllers/deprovisioning/metrics.go

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

N/A

Are you currently working around this issue?

N/A

Additional Context

No response

Attachments

No response

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@jonathan-innis jonathan-innis added operational-excellence kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/testing Issues that involve adding test coverage labels May 5, 2023
@jonathan-innis jonathan-innis changed the title Test Coverage for CloudProvider Metrics fired from CloudProvider Decorator Test Coverage for CloudProvider Metrics fired from pkg/cloudprovider/metrics May 5, 2023
@njtran njtran changed the title Test Coverage for CloudProvider Metrics fired from pkg/cloudprovider/metrics Test Coverage for Metrics May 11, 2023
@jonathan-innis jonathan-innis added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/testing Issues that involve adding test coverage operational-excellence
Projects
None yet
Development

No branches or pull requests

1 participant