-
Notifications
You must be signed in to change notification settings - Fork 301
fix(job-logs-collector): Fix routing to otel-router #2599
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,22 +113,18 @@ category = "{{ category }}" | |
|
|
||
| %{ if enable_otel_router_logs } | ||
| [sinks.otel_router_non_internal] | ||
| type = "opentelemetry" | ||
| type = "http" | ||
| inputs = [ "remove_internal" ] | ||
| uri = "http://127.0.0.1:${otel_router_http_port}/logs" | ||
| method = "post" | ||
| healthcheck.enabled = false | ||
| buffer.type = "memory" | ||
| buffer.max_events = 500 | ||
| buffer.when_full = "drop_newest" | ||
| encoding.codec = "json" | ||
| framing.method = "newline_delimited" | ||
|
|
||
| [sinks.otel_router_non_internal.protocol] | ||
| type = "http" | ||
| uri = "http://otel-router.service.consul:4318/v1/logs" | ||
| method = "post" | ||
|
|
||
| [sinks.otel_router_non_internal.protocol.encoding] | ||
| codec = "otlp" | ||
|
|
||
| [sinks.otel_router_non_internal.protocol.request] | ||
| [sinks.otel_router_non_internal.request] | ||
| retry_attempts = 0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There shouldn't be any network issues over localhost. We have bigger problems if there are and retries are not gonna help. This saves vector from having to buffer any logs. |
||
| timeout_secs = 2 | ||
| %{ endif } | ||
|
|
||
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.
The change from a Consul service address to 127.0.0.1 will break log routing in Nomad environments using bridged networking unless the otel-router is running as a sidecar in the same task group. If the router is a separate service, it should continue to use the Consul discovery address to ensure connectivity across the cluster regardless of the network configuration.