Open VenuEmmadi opened 2 months ago
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: Configuration used without explicit health_check endpoint. Steps to reproduce using curl. Error logs and behavior. Explicit configuration as a workaround. Mention environment details and ask whether this behavior is intended.
Key Points:
Include the configuration used without endpoint for grpc. Steps to reproduce the issue. Logs and observed errors. Explicit configuration as a workaround. Ask for clarification if this behavior aligns with the intended default setup.
Key Points:
Consolidate observations about both health check and gRPC endpoints. Emphasize how explicit configurations resolve issues. Request documentation updates or confirmation of expected behavior.
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
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/
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/
Configuration With Explicit Endpoint Definitions:
With this configuration, both endpoints work correctly. Specifically:
From Browser the output is as below:
Expected Behavior:
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 athttp://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: