You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our application runs on ECS Fargate. We are using the Java OpenTelemetry Agent for instrumentation, which sends all logs and metrics to our OTEL collector sidecar.
The issue is that the host_metadata tags provided under the exporters are not being applied to the logs coming from the Opentelemtry Java agent.
This is because the Java agent is grabbing the hostname from ECS Fargate, for example: ip-10-10-10-10.<region>.compute.internal but the Datadog exporter will only set the host_metadata tags if the hostname matches ${PROJECT}-{ENV}
Question:
Since it's not possible to set a custom hostname on ECS Fargate, is there a way we can force the Opentelemtry agent to use a custom hostname?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Our application runs on ECS Fargate. We are using the Java OpenTelemetry Agent for instrumentation, which sends all logs and metrics to our OTEL collector sidecar.
Our OTEL collector is configured with:
Our Java agent is configured with:
The issue is that the host_metadata tags provided under the exporters are not being applied to the logs coming from the Opentelemtry Java agent.
This is because the Java agent is grabbing the hostname from ECS Fargate, for example:
ip-10-10-10-10.<region>.compute.internal
but the Datadog exporter will only set the host_metadata tags if the hostname matches ${PROJECT}-{ENV}Question:
Since it's not possible to set a custom hostname on ECS Fargate, is there a way we can force the Opentelemtry agent to use a custom hostname?
Beta Was this translation helpful? Give feedback.
All reactions