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

Neg count metrics #2177

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Conversation

swetharepakula
Copy link
Member

Add a new managed neg count metric that will track the count of negs by zone and endpoint type. This is different from the neg count in the usage metrics which only counts syncers. The usage metrics can be an undercount as it does not account for regional clusters where a neg is created per zone. Syncers' locations can point to regions for regional clusters which does not give an accurate picture of the distribution of negs across zones.

A followup commit is also included that cleans up the syncerState metric so that the different states no longer need to be hardcoded.

/assign @gauravkghildiyal
/cc @sawsa307

 * track neg count by location and endpoint type
 * other neg usage only track number of service points while this will
   give a more accurate reading for regional clusters
@k8s-ci-robot
Copy link
Contributor

@swetharepakula: GitHub didn't allow me to request PR reviews from the following users: sawsa307.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

Add a new managed neg count metric that will track the count of negs by zone and endpoint type. This is different from the neg count in the usage metrics which only counts syncers. The usage metrics can be an undercount as it does not account for regional clusters where a neg is created per zone. Syncers' locations can point to regions for regional clusters which does not give an accurate picture of the distribution of negs across zones.

A followup commit is also included that cleans up the syncerState metric so that the different states no longer need to be hardcoded.

/assign @gauravkghildiyal
/cc @sawsa307

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 26, 2023
@sawsa307
Copy link
Contributor

LGTM, thank you for making this change!

 * removes need for hardcoding all states
@gauravkghildiyal
Copy link
Member

Thanks!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2023
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit f16b7b9 into kubernetes:master Jun 28, 2023
k8s-ci-robot added a commit that referenced this pull request Mar 7, 2024
[Cherrypick #2153, #2177, #2150 into release-1.23] Add NEG count, GCERequest and GCE Latency Metrics
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.

4 participants