Java Installation

Integrate Hud Java Agent for enhanced observability in your application in a few simple steps

1. Create environment variables

Create the following environment variables:

  1. HUD_KEY - Hud API key, use the key for the relevant environment from here
  2. HUD_SERVICE - your service name

2. Download the Hud's Jar

Use wget to download Hud's Jar.

For a fixed version:

wget https://github.com/code-hud/java-sdk-releases/releases/download/v0.2.x/hud-sdk.jar

For the latest version:

wget https://github.com/code-hud/java-sdk-releases/releases/latest/download/hud-sdk.jar

3. Add Hud to your service start command

java -javaagent:./hud-sdk.jar -Dio.hud.includeDomains=[package_name1];[package_name2];... -jar [app.jar]

Where:

  • [package_name1];... are the packages to monitor, and could be just their start, e.g. companyname
  • [app.jar] is your application jar

4. Run your service and trigger it!

Start your service and trigger the functions you want to measure - metrics collection will begin automatically.

Then, head over to the web app to explore your data live.

Need help? Use Hud's Chat with our support team or email us at [email protected] .