-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Switch from grpc-ecosystem/go-grpc-prometheus to grpc-ecosystem/go-grpc-middleware/providers/prometheus #19195
base: main
Are you sure you want to change the base?
Conversation
Hi @dims. Thanks for your PR. I'm waiting for a etcd-io 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-sigs/prow repository. |
f7123cd
to
f80c5b2
Compare
/ok-to-test |
thanks @ivanvc |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
... and 23 files with indirect coverage changes @@ Coverage Diff @@
## main #19195 +/- ##
==========================================
- Coverage 68.83% 68.83% -0.01%
==========================================
Files 420 420
Lines 35678 35714 +36
==========================================
+ Hits 24560 24582 +22
- Misses 9688 9709 +21
+ Partials 1430 1423 -7 Continue to review full report in Codecov by Sentry.
|
/test pull-etcd-integration-2-cpu-amd64 |
/assign @ahrtr @serathius |
Thanks @dims for the PR. I did some sanity test on this PR, and compared it with the existing main branch.
Also references: |
Do we need a test to confirm that no metric was removed? |
@ahrtr did you run with |
i think so for future-proofing! |
YES, I executed the same command on this PR and the main branch. The main branch was working as expected, but this PR did not generate the histograms metrics. |
f80c5b2
to
03554ca
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dims The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@ahrtr found the issue and hopefully fixed it. Added a test as well. However, please check if i broke anything in the process of threading the option through to both the test suite and the main binary. |
03554ca
to
cafe302
Compare
cafe302
to
d3fe3e2
Compare
/test pull-etcd-integration-2-cpu-amd64 |
f1e0118
to
c4bed32
Compare
/test pull-etcd-robustness-arm64 |
@serathius Done! see new test case. If there are other metrics we can trigger them and then add to the list. |
efbc3fc
to
742ce69
Compare
742ce69
to
da7dd38
Compare
@serathius @ahrtr the follow up PR once this merges will be https://github.com/etcd-io/etcd/pull/19242/files |
/test pull-etcd-unit-test-386 |
@dims please see my comment #19242 (comment), thx |
…pc-middleware/providers/prometheus Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
da7dd38
to
c94b3be
Compare
"project": "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors", | ||
"licenses": [ | ||
{ | ||
"type": "\"Do What The F*ck You Want To Public License\"", |
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.
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.
@ahrtr ./scripts/updatebom.sh
is generating it
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.
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.
github.com/grpc-ecosystem/go-grpc-middleware/v2
doesn't use this license.
Looks like it's coming from https://github.com/appscodelabs/license-bill-of-materials/blob/master/assets/wtfpl.txt
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.
@ahrtr correct! look at the confidence score "confidence": 0.14814814814814814
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.
@ahrtr do you want me to add an entry in override.json?
"etcd_disk_backend_commit_duration_seconds", | ||
"etcd_disk_backend_defrag_duration_seconds", | ||
"etcd_disk_backend_snapshot_duration_seconds", |
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.
This looks like a breaking change? It changes the metrics names.
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.
nope! the _bucket, _count, _sum suffixes are dropped as i am parsing them correctly using the official parser.
you can see lines 266-268 have the correct names.
"grpc_client_handled_total", | ||
"grpc_client_msg_received_total", | ||
"grpc_client_msg_sent_total", | ||
"grpc_client_started_total", | ||
"grpc_server_handled_total", | ||
"grpc_server_handling_seconds", |
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.
this is the extra metric when we turn on extensive
Reviving previous effort from: #17974
xref: kubernetes/kubernetes#128583
Added a new test to make sure we are not missing any expected metrics.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.