-
Notifications
You must be signed in to change notification settings - Fork 303
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
Cleanup NEG Metrics #2153
Cleanup NEG Metrics #2153
Conversation
swetharepakula
commented
May 26, 2023
•
edited
Loading
edited
- Move metrics around to be easier to find
- Have package separation between metrics. Mainly to reduce dependencies on the main metrics package so that can be used to publish metrics in negtypes (I will be adding metrics as part of Add GCE Request Count Metric #2150)
* removal of constants makes reading the metric definition easier
/assign @gauravkghildiyal /cc @sawsa307 |
@swetharepakula: GitHub didn't allow me to request PR reviews from the following users: songrx1997, sawsa307. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7e04c39
to
7277cd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super helpful PR! Love the removal of that pile of unnecessary constants :)
* all gauge metrics that require state are moved to syncer_metrics.go are published by the metrics collector * all metrics that do not require state and not emitted by the metrics collector
* metricscollector depends on negtypes therefore pull this into its own package * this separation will help when adding metrics that need to go into the negtypes package * register the metrics for each package separately to ensure isolation between the packages
7277cd0
to
ec8a4af
Compare
Thanks! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauravkghildiyal, swetharepakula 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 |
/retest verification failed in downloading go dependencies for the linter and not related to the PR |