-
Notifications
You must be signed in to change notification settings - Fork 207
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
Enable HTTP Health Check for OTelTraceSource and OTelMetricsSource #1546
Comments
I'm interested in pursuing something along the lines of the alternative solution. I think it would be based on the logic of both having unframed requests enabled and health checks enabled. e.g.
What do you think? |
Yeah, this would be one less configuration to add. We would rely on
or have option to enable HTTP health check on top of GRPC health check:
|
I'm leaning towards having option to enable HTTP health check on top of GRPC health check:
This also aligns with use of unframed request option which is intended to be used to gradually migrate an existing HTTP POST based API to gRPC, so it helps to have both gRPC and HTTP health check. |
Yes, I think if you are enabling unframed requests, you are still supporting gRPC. So, we should have the health check on both HTTP and gRPC. This makes the most sense to me. This is the logic to use:
|
Is your feature request related to a problem? Please describe.
As a customer using DataPrepper to ingest OTel Trace and Metrics data using HTTP (without gRPC wire format), i want to support HTTP health check in OTelTraceSource and OTelMetricsSource because i would want to do health check on the source using HTTP and not using gRPC.
Describe the solution you'd like
Introduce new configuration to the OTelTraceSource and OTelMetricsSource
health_check_service_type
. Possible values areGRPC and HTTP
, default isGRPC
(backward compatible). Whenhealth_check_service_type
isGRPC
existingHealthGrpcService
will be used. Whenhealth_check_service_type
isHTTP
,HealthCheckService
will be used that responds with HTTP status "200 OK" if the server is healthy and can accept requests and HTTP status "503 Service Not Available" if the server is unhealthy and cannot accept requests.Describe alternatives you've considered (Optional)
Another alternative is support both GRPC and HTTP health check on OTelTraceSource and OTelMetricsSource. Additional configuration parameter will be added to enable HTTP health check. The current
health_check_service
will be used to enable GRPC health check and new configurationhttp_health_check_service
will be used to enable HTTP health check.The text was updated successfully, but these errors were encountered: