-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Issue with Endpoints Port Forwarding outside of Otel. #35329
Comments
This issue is too long - please break it into smaller issues that can be assigned to a specific component for review. |
Hi @atoulme, As per your suggestion, I have broken down the issue into smaller, more focused parts and created new issues for each specific concern. Additionally, I have edited the original issue above to make it shorter and more precise. Please let me know if further adjustments are needed or if any of the newly created issues require additional details. Below are the individual issues for review:
Key Points:
Key Points: Include the configuration used without endpoint for grpc.
Key Points: Consolidate observations about both health check and gRPC endpoints. |
Hi @atoulme Please looki into this issue. /label discussion-needed |
No I mean please create new github issues. Don't list them here. |
Component(s)
No response
What happened?
PortForwardIssueOpenTelemetry.docx
Collector version
v0.109.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
Title: Issues with Endpoints Port Forwarding outside of OpenTelemetry Collector application
Title: Issues with Endpoints Port Forwarding outside of OpenTelemetry Collector application
I am encountering issues with Endpoints like the health check and gRPC endpoints in the OpenTelemetry Collector. The problems are particularly evident when these endpoints are not explicitly configured, resulting in connection aborts. Below are the detailed observations and configurations related to this issue.
Issue:
When attempting to access the health check and gRPC endpoints of the OpenTelemetry Collector, the connections are being aborted
Example:
http://localhost:13133
http://localhost:4318
Expected Behavior according to documentation:
Health Check Endpoint: When accessed without an explicitly defined endpoint, the response is an error indicating that the connection was aborted.
The following
curl
command results in:curl -v http://localhost:13133/
curl: (56) Recv failure: Connection was aborted
From Browser the output is as below:
Its Showwing “ERR_EMPTY_RESPONSE”.
gRPC Endpoint: Similarly, when not configured explicitly, attempts to connect to the gRPC endpoint result in connection aborts. However, when explicitly configured, the connection succeeds.
Configuration Files:
Configuration Without Explicit Endpoint Definitions:
With this configuration, the health check and gRPC endpoints fail to respond properly as shown below.
curl -v http://localhost:13133/
curl: (56) Recv failure: Connection was aborted
From Browser the output is as below:
Its Showwing “ERR_EMPTY_RESPONSE”.
Configuration With Explicit Endpoint Definitions:
With this configuration, both endpoints work correctly. Specifically:
From Browser the output is as below:
3. Expected Behavior:
Below output should be given by the server even without explicitly given the endpoint.
curl -v http://localhost:13133/
< Content-Type: application/json
< Date: Thu, 19 Sep 2024 21:32:46 GMT
< Content-Length: 98
<
{"status":"Server available","upSince":"2024-09-19T21:24:23.69654773Z","uptime":"8m23.117058632s"}
From Browser:
The issue seems to be related to the default behavior of endpoint configurations in the OpenTelemetry Collector. When endpoints are not explicitly defined, the connections to the health check and gRPC services fail. Explicitly defining these endpoints resolves the issue, allowing for proper communication and status responses.
->Deploy the OpenTelemetry Collector using the configuration without explicit endpoint definitions.
->Attempt to access the health check endpoint at
http://localhost:13133
.->Attempt to access the gRPC endpoint at
http://localhost:4318
.-> Observe the connection abort errors.
-> Modify the configuration to include explicit endpoint definitions for both services.
->Retry accessing the endpoints and confirm that they respond correctly.
This issue needs further investigation to understand why its behaving like above in new versions.
References:
The text was updated successfully, but these errors were encountered: