Quickstart guide
Traffic Hunter Quickstart
Target Applicaiton
The target application is recommended to use
Spring Framework 6.x
andSpring Boot 3.x
versions. It is also advised to configureSpring Actuator to the latest version
. Lower versions may not function properly or could encounter compatibility issues.Before running the Traffic Hunter agent, you need to install
Spring Actuator
in your application. Additionally, update yourapplication.yml
file with the following configurationThe agent collects metrics using
JMX (Java Management Extensions)
, making the configuration ofActuator
mandatory.
Agent
Download
Step.1
An environment configuration file is required for the agent. The file format should be in YAML.
Create a Yaml file and place it in the desired path.
name
: Specifies the unique name of the agent. (e.g., myAgent).jar
: The file path to the agent's JAR file. (e.g., /path/my-agent.jar).server-uri
: Server uri (e.g., localhost:9100).target-uri
: Target App uri (e.g., localhost:8080).interval
: The interval (in seconds) at which the agent sends metrics or traces to the server. (e.g., 5 seconds).retry
: A section defining the retry mechanism for the agent when it fails to send data to the server.max-attempt
: The maximum number of retry attempts the agent makes in case of failure (e.g., 10).backoff
: A subsection defining the backoff policy for retries.interval-millis
: The initial delay (in milliseconds) between retry attempts (e.g., 1000 milliseconds).multiplier
: The multiplier for the exponential backoff. After each retry attempt, the delay increases by multiplying the previous delay by this value (e.g., 2).
Step.2
Place the YAML file in the desired directory and configure the application to launch with the Java agent at runtime.
-javaagent
: agent jar path-Dtraffichunter.config
: yaml file path
Step.3
It is highly recommended to start the server before starting the agent.
After launching the agent, wait approximately 8 seconds until the message
start metric send!!
appears. Metrics will begin transmitting once this message is displayed. Please wait until it appears.
Notes
If you discover the file
/home/traffic-hunter/key/xxx_agent_id.txt
, do not delete it under any circumstances. This.txt
file contains the identification code of the agent. Deleting it may cause data loss issues during the agent's runtime.
DataBase
TimescaleDB
enhances APM systems by providingefficient time-series data storage
withadvanced compression
, reducing storage costs while retaining performance. Its seamless integration as aPostgreSQL extension
allows developers to leverage familiar SQL for querying metrics, traces, and logs. This makes it ideal for handlinghigh-throughput APM data
, enablingreal-time analytics
and historical insights without additional database complexity.
Server
The server only requires additional configuration for database-related information.
The following code represents the actual YAML configuration file for the server environment. This file requires
DB_IP
,DB_NAME
,USER_NAME
, andPASSWORD
.This server uses port 9100.
JAR
Download
Command
Docker
Download
linux/amd64
linux/arm64
Command
Visualization
Grafana
is used in conjunction with TimescaleDB to deliver an optimal UI for monitoring and visualization.
Import Dashboard
Install dashboard json.
Step.1
Enter grafana dashboards tap
Step.2
New -> Import
Step.3
Upload dashboard json -> Load
Last updated