cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OTEL (auto) ingest for K8s services

r_weber
DynaMight Champion
DynaMight Champion

Hello,
we are trying to get a vert.x java service traced with the support of OpenTelemetry.
The service runs in a K8s pod which is monitored already by Oneagent (dynakube).

The process should be very straight forward, just following these steps. Using oneagent ingestion.

  • add OTEL agent to the java startup
  • disable default exporters via env variables
    OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
    OTEL_EXPORTER=none

However when the application is start up it always still tries to perform the export to localhost:

 

SEVERE: Failed to export metrics. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:431884java.net.ConnectException: Failed to connect to localhost/127.0.0.1:431883	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)82

 

 

When we try to set the exporter URL manually to directly export to the SaaS instance it seems to work (a connection attempt is made). But we cannot use that setup due to firewall restrictions.

Now I have a few questions:

In the above log the export tries to connect to localhost/127.0.0.1:431883... What port ist that? That doesn't seem to be a valid port range?
In that configuration (oneagent ingested) there shouldn't be any attempt to export traces anywhere, right? The oneagent within the process should pick up those traces, right?

 

Thanks!

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net
0 REPLIES 0

Featured Posts