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

enhance: Use middleware to observe restful v2 in/out rpc stats #37223

Merged

Conversation

congqixia
Copy link
Contributor

Related to #36102

Previous PR #36107 add grpc inteceptor to observe rpc stats. Using same strategy, this pr add gin middleware to observer restful v2 rpc stats.

Related to milvus-io#36102

Previous PR milvus-io#36107 add grpc inteceptor to observe rpc
stats. Using same strategy, this pr add gin middleware
to observer restful v2 rpc stats.

Signed-off-by: Congqi Xia <[email protected]>
@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Oct 28, 2024
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

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

@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Oct 28, 2024
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@1e75a42). Learn more about missing BASE report.
Report is 7 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37223   +/-   ##
=========================================
  Coverage          ?   80.88%           
=========================================
  Files             ?     1319           
  Lines             ?   182618           
  Branches          ?        0           
=========================================
  Hits              ?   147711           
  Misses            ?    29744           
  Partials          ?     5163           
Components Coverage Δ
Client ∅ <ø> (?)
Core 66.89% <ø> (?)
Go 83.17% <100.00%> (?)
Files with missing lines Coverage Δ
...nternal/distributed/proxy/httpserver/handler_v2.go 91.94% <100.00%> (ø)
pkg/metrics/grpc_stats_handler.go 100.00% <100.00%> (ø)
pkg/metrics/restful_middleware.go 100.00% <100.00%> (ø)

@mergify mergify bot added the ci-passed label Oct 28, 2024
sre-ci-robot pushed a commit that referenced this pull request Oct 29, 2024
…37224)

Cherry pick from master
pr: #37223
Related to #36102

Previous PR #36107 add grpc inteceptor to observe rpc stats. Using same
strategy, this pr add gin middleware to observer restful v2 rpc stats.

Signed-off-by: Congqi Xia <[email protected]>
@smellthemoon
Copy link
Contributor

/lgtm

@sre-ci-robot sre-ci-robot merged commit 0f59bfd into milvus-io:master Oct 29, 2024
20 checks passed
congqixia added a commit to congqixia/milvus that referenced this pull request Oct 29, 2024
…s-io#37223)

Related to milvus-io#36102

Previous PR milvus-io#36107 add grpc inteceptor to observe rpc stats. Using same
strategy, this pr add gin middleware to observer restful v2 rpc stats.

Signed-off-by: Congqi Xia <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Oct 29, 2024
…37223) (#37240)

Cherry pick from master
pr: #37223
Related to #36102

Previous PR #36107 add grpc inteceptor to observe rpc stats. Using same
strategy, this pr add gin middleware to observer restful v2 rpc stats.

Signed-off-by: Congqi Xia <[email protected]>
@congqixia congqixia deleted the enhance/restful_stats_metrics branch October 29, 2024 10:22
congqixia added a commit to congqixia/milvus that referenced this pull request Nov 5, 2024
Related milvus-io#37223

RPC stats worked in middleware but faild to get method & collection info

Signed-off-by: Congqi Xia <[email protected]>
congqixia added a commit to congqixia/milvus that referenced this pull request Nov 5, 2024
Related milvus-io#37223

RPC stats worked in middleware but faild to get method & collection info

Signed-off-by: Congqi Xia <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Nov 5, 2024
Cherry pick from master
pr: #37439
Related #37223

RPC stats worked in middleware but faild to get method & collection info

Signed-off-by: Congqi Xia <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Nov 5, 2024
Related #37223

RPC stats worked in middleware but faild to get method & collection info

Signed-off-by: Congqi Xia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants