-
Notifications
You must be signed in to change notification settings - Fork 4.6k
health: Add List method to gRPC Health service #8155
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
Conversation
This change introduces a new `List` RPC endpoint for the Health service, allowing clients to retrieve the statuses of all monitored services. This feature simplifies integration with status-reporting dashboards and enhances observability for microservices. Proposal: grpc/proposal#468 gRPC-proto change: grpc/grpc-proto#143 Signed-off-by: Marcos Huck <marcos@huck.com.ar>
health/grpc_health_v1/health.pb.go
Outdated
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.
I regenerated the Go stubs using the work in progress version of grpc/grpc-proto#143
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.
I regenerated the Go stubs using the work in progress version of grpc/grpc-proto#143
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8155 +/- ##
==========================================
+ Coverage 82.08% 82.15% +0.06%
==========================================
Files 417 419 +2
Lines 41344 41988 +644
==========================================
+ Hits 33936 34494 +558
- Misses 5972 6023 +51
- Partials 1436 1471 +35
🚀 New features to boost your workflow:
|
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.
@marcoshuck i think we need to wait for the proposal and proto change to be merged before this? I still see them in review
@dfawley cc
Signed-off-by: Marcos Huck <marcos@huck.com.ar>
This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed. |
Signed-off-by: Marcos Huck <marcos@huck.com.ar>
Co-authored-by: Purnesh Dixit <purnesh.dixit92@gmail.com>
Signed-off-by: Marcos Huck <marcos@huck.com.ar>
@marcoshuck could you resolve the merge conflicts? |
Signed-off-by: Marcos Huck <marcos@huck.com.ar>
I did, however I cannot find the root cause for the vet error, any advice? |
goimports -w ./health/server_internal_test.go |
That did the trick, thank you! |
Filed #8276 for the flake. And we can ignore the vet-proto error - we need to regenerate our proto messages, but not in this PR. |
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.
LGTM, thanks!
health/server_internal_test.go
Outdated
} | ||
|
||
// TestListResourceExhausted verifies that List( | ||
// ) returns a ResourceExhausted error if no. of services are more than |
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.
nit: move the dangling bracket above
@marcoshuck 2 more small comments. Thanks. |
This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed. |
This change introduces a new
List
RPC endpoint for the Health service, allowing clients to retrieve the statuses of all monitored services. This feature simplifies integration with status-reporting dashboards and enhances observability for microservices.Proposal: grpc/proposal#468
gRPC-proto change: grpc/grpc-proto#143
RELEASE NOTES:
List
method to gRPC Health service.