Thundra APM
Search…
Deployment Integrations
Spring

Step 1: Download Thundra Agent

Download the Thundra agent here.

Step 2: Start Your Application

Start your Java application with the Thundra agent jar by -javaagent VM argument.
1
java -javaagent:<path-to-thundra-agent> -jar <your-app-jar> ...
Copied!

Step 3: Configure the Dockerfile

The following example shows how the application is configured with Dockerfile:
1
FROM openjdk:8
2
RUN mkdir -p /app
3
ADD target/thundra-container-demo-0.1.0.jar /app/thundra-container-demo.jar
4
ADD thundra-agent-bootstrap.jar /app/thundra-agent-bootstrap.jar
5
WORKDIR /app
6
EXPOSE 8080
7
ENTRYPOINT [ "java", "-javaagent:thundra-agent-bootstrap.jar", "-jar", "thundra-container-demo.jar" ]
Copied!

Step 4: Configure the Integration

You need to configure your integration work properly and send your application data to Thundra. You will set the following configurations:
  • Thundra API key
  • Application Name
You can make these configurations using three different ways:

Environment Variables

1
export THUNDRA_APIKEY=<your-api-key> && export THUNDRA_AGENT_APPLICATION_NAME=<your-app-name> && java -javaagent:<path-to-thundra-agent> -jar <your-app-jar> ...
Copied!

System Properties

1
java -javaagent:<path-to-thundra-agent> -Dthundra.apiKey=<your-api-key> -Dthundra.agent.application.name=<your-app-name> -jar <your-app-jar> ...
Copied!

Configuration File

You need to put thundra-config.yml in your artifact, which is picked up from classpath automatically.
1
thundra:
2
apiKey: <your-api-key>
3
agent:
4
application:
5
name: <your-app-name>
Copied!
As an example, the thundra-config.yml can be put under the src/main/resources/ folder in the Maven project structure (a software project management tool) so the Thundra agent will be able to directly read its classpath.
The Thundra agent supports the following Spring frameworks without any additional configuration needed:
  • Spring Web (4.x, 5.x)
  • Spring Boot (1.x, 2.x)
Last modified 8mo ago