-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
apiserver/etcd: add request and request_error metrics #117222
Conversation
Signed-off-by: iyear <[email protected]>
Hi @iyear. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Thank you for the PR. This LGTM, but I would like to get confirmation from SIG instrumentation POV. /assign @dgrisonnet |
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.
Just one comment from my side, otherwise these new metrics look good to me 👍
@@ -47,6 +47,22 @@ var ( | |||
}, | |||
[]string{"operation", "type"}, | |||
) | |||
etcdRequestCounts = compbasemetrics.NewCounterVec( | |||
&compbasemetrics.CounterOpts{ | |||
Name: "etcd_request_total", |
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.
https://prometheus.io/docs/practices/naming/#metric-names
Name: "etcd_request_total", | |
Name: "etcd_requests_total", |
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.
Nice suggestion! Updated.
Signed-off-by: iyear <[email protected]>
/label tide/merge-method-squash /lgtm Thanks! |
LGTM label has been added. Git tree hash: 89027fda55845bed8ea76eef06ee54f447a23414
|
Thank you all:) |
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.
Awesome, great work @iyear :)
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgrisonnet, iyear, wojtek-t 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 |
/triage accepted |
@iyear This change deserves a release note for users to monitor the new metric. Can you add one similar to this - #117211 (comment) |
@shyamjvs Added. Thanks for reply:) |
) * apiserver/etcd: add request and request_error metrics Signed-off-by: iyear <[email protected]> * apiserver/etcd: rename etcdRequestCounts metric Signed-off-by: iyear <[email protected]> --------- Signed-off-by: iyear <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add request and request_error metrics for apiserver etcd storage.
Which issue(s) this PR fixes:
Part of #117167
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: