https://signoz.io logo
#support
Title
# support
d

Doan Quang

02/05/2023, 12:51 PM
Hi everyone, I have a private aks cluster hosted on azure cloud. Then i create a VM with 4vcpu - 16Gb Mem configuration to initialize signoz using docker compose. Signoz working fine. Next, based on Java Spring Boot example project. I dockerized petclinic spring boot to send metrics to signoz for application monitoring purposes:
Copy code
FROM openjdk:8-jdk-alpine
WORKDIR /app
COPY target/spring-petclinic-2.4.5.jar spring-petclinic-2.4.5.jar
COPY otel-agent/opentelemetry-javaagent.jar opentelemetry-javaagent.jar
ENV JAVA_TOOL_OPTIONS="-javaagent:/app/opentelemetry-javaagent.jar \
                      -Dotel.exporter.otlp.endpoint=<http://10.0.0.4:4317> \
                      -Dotel.resource.attributes=service.name=JavaDemoApp"
EXPOSE 8090
ENTRYPOINT ["java", "-jar", "spring-petclinic-2.4.5.jar"]
And then i already deploy petclinic container into private aks cluster, Petclinic Pod is running then. However, I get logs in the petclinic pod starting that: [otel.javaagent 2023-02-04 094007:129 +0000] [OkHttp http://10.0.0.4:4317/...] ERROR io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter - Failed export index. The request could not be fulfilled. Full error message: timeout Note: 10.0.0.4 is the private address of the VM Signoz can not get the data from the petclinic pod Have you encountered this problem before? and is there any way to solve this problem? many thanks!
s

Srikanth Chekuri

02/06/2023, 3:13 AM
Can your petclinic app access the private VM? It seems like it is not reachable.
r

Ryan Yang

02/06/2023, 7:43 PM
Try seeing if you can hit your collector
Copy code
docker run -it --rm signoz/troubleshoot checkEndpoint --endpoint=<signoz collector address>
d

Doan Quang

02/08/2023, 1:58 PM
I think aks private cluster and my VM running on different vnet. Maybe i need to peering both to my VM can connect to the cluster.
5 Views