FROM tomcat
ADD myApp.war /usr/local/tomcat/webapps
#Creates a FusionReactor Directory
RUN mkdir -p /opt/fusionreactor/instance/tomcat
#Adds the fusionreactor.jar file to the instance directory
ADD https://download.fusionreactor.io/FR/Latest/fusionreactor.jar /opt/fusionreactor/instance/tomcat
#Add the debug library file to the instance directory
ADD https://download.fusionreactor.io/FR/Latest/libfrjvmti_x64.so /opt/fusionreactor/instance/tomcat
#Add FusionReactor to the JVM arguments
ENV JAVA_OPTS="-javaagent:/opt/fusionreactor/instance/tomcat/fusionreactor.jar=name=tomcat,address=8088 -agentpath:/opt/fusionreactor/instance/tomcat/libfrjvmti_x64.so"
Step 2: Run the Observability Agent
The Observability Agent provides you with the necessary tools and insights to effectively monitor, manage, and optimize your applications, leading to improved reliability, performance, and user experience.
Run via Docker
Run the following command, replacing YOUR_API_KEY with your actual API key and adjusting the environment variables as needed:
Configure the endpoint of the OTel application to the Observability Agent at "otel-collector:4317" or "otel-collector:4318"of your machine (depending on whether you're using gRPC or HTTP). This ships telemetry data to the Observability Agent, which does the cloud shipping for you.
Note
It is possible to use a dedicated OTel collector or alternative if required, but the Observability Agent is the simplest method for shipping telemetry data.
Need more help?
Contact support in the chat bubble and let us know how we can assist.