#support

Monitoring Dockerized Spring Boot Application with OpenTelemetry

TLDR Emmanuel faced issues monitoring a dockerized Spring Boot app with OpenTelemetry. Srikanth explained it's not related to Docker; app disappears due to inactivity.

Powered by Struct AI
3
8mo
Solved
Join the chat
Apr 13, 2023 (8 months ago)
Emmanuel
Photo of md5-68e9aaa2d0008c41255ac87d2893644f
Emmanuel
05:51 PM
Hi, I am trying instrument my spring boot application to monitor the metrics. But we dockerized apps before deployment. I have been able include the OpenTelemetry jar file in the docker file. My issue is the application appears on the service page and then disappears with time and also no metrices is coming into SigNoz.

Is there a way to monitoring a dockerised spring boot application? This is the entry point in the dockerfile

*ENTRYPOINT* ["java","-javaagent:/usr/local/lib/opentelemetry-javaagent.jar","-Dotel.exporter.otlp.endpoint=<http://xx.xx.xx.xx:4317>", "-Dotel.resource.attributes=service.name=Payroll-API-dev", "-jar" , "/usr/local/lib/demo.jar"]
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
10:51 PM
&gt; My issue is the application appears on the service page and then disappears
There is a time range in the top right corner. If your application stops sending data for a long time it will not appear in the list. It’s not really about the docker if you could get some data.
Apr 14, 2023 (8 months ago)
Emmanuel
Photo of md5-68e9aaa2d0008c41255ac87d2893644f
Emmanuel
12:59 PM
Thank you. I appreciate your help