-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dash0 Node IP does not work on Docker-desktop to report telemetry from the OTel Java agent #229
Comments
Uhm, it seems something specific to the OTel Java agent. Running an
(The |
I have the suspicion that is has something to do with the buildpack I am using. it's Spring Boot app image created with <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/java</buildpack>
<buildpack>gcr.io/paketo-buildpacks/opentelemetry</buildpack>
</buildpacks>
<env>
<BP_OPENTELEMETRY_ENABLED>true</BP_OPENTELEMETRY_ENABLED>
</env>
</image>
</configuration>
</plugin>
</plugins>
</build>
</project> However, I have yet to find a way to SSH into the container (the |
Are you sure that the port ( |
This is a transient problem in Docker Desktop, sometimes the networking gets hosed and the only known solution is to restart the Docker daemon. |
We are using the Downwards API's
status.hostIP1
field to populate theDASH0_NODE_IP
environment variable, which is then referenced inDASH0_OTEL_COLLECTOR_BASE_URL
(and, in #228, also forOTEL_EXPORTER_OTLP_ENDPOINT
) to point the OTel SDKs to the collector running on the daemonset via:On Minikube, everything works fine. On Docker Desktop, the OTel Java agent running on a pod cannot collect to the collector (
192.168.65.3
is the node internal IP, confirmed usingkubectl get nodes
):The text was updated successfully, but these errors were encountered: