grpc / grpc/grpc-java

Allow non grpc services to report health/service existance

Open
#4,992 3 comments 1 reaction 1 assignee Claimed by @zhangkun83 View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

### What version of gRPC are you using?

0.15.0

### Feature-Request

Not all applications are purely grpc based, so it would be nice if the [HealthStatusManager](https://github.com/grpc/grpc-java/blob/master/services/src/main/java/io/grpc/services/HealthStatusManager.java) could expose the health also to other beans. This is especially useful for most monitoring systems that still rely on plain http (html/text/json...).

It would be nice if a method like the following could be added:

* `+ getAllStatuses() : Map`

as an alternative the following would also be OK:

* `+ getServices() : Set`
* `+ getStatus(name : String) : Status`

Usecases:
* Spring Actuator HealthChecks
* Spring Actuator Info to report service existence/status

Alternatives considered: Create my own beans and track the health status twice.

Might be related to #1848, #4356.

PS: If this feature gets accepted, I can create a PR for that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.