# Introduction

## Traffic-Hunter

**Traffic-Hunter** is APM (Application Performance Management)

* `Real-Time Monitoring`: Capture and visualize application metrics and transaction logs in real-time.
* `Easy Configuration`: Easily configure the agent using a simple YAML file, making setup straightforward and user-friendly.
* `Efficient Data Storage`: Leverages [**TimescaleDB**](https://www.timescale.com/) for efficient storage and querying of time-series data, enabling high-performance analytics on metrics and traces.
* `Visualization`: This APM leverages [**Grafana**](https://grafana.com/docs/grafana/latest/) for powerful and customizable visualization of metrics and transaction logs, enabling real-time insights and easy integration into your observability stack.
* `Zero-Code`: Traffic Hunter Agent uses **Java Instrumentation** to modify bytecode at runtime, requiring no code changes from users. Simply attach the agent, and it automatically tracks metrics and traces with zero configuration.

## Overview&#x20;

* **Application Metric** - cpu, heap memory, thread, web server, dbcp (database connection pool)

<figure><img src="https://github.com/user-attachments/assets/18866da9-8b64-4ea8-a703-18e23b61d756" alt=""><figcaption></figcaption></figure>

* **Trace** - Trace track application requests in real-time, recording executed methods and related information. (Support zipkin)

<figure><img src="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2F1wpEmxlvzOrHTUc8CWLH%2FTalkMedia_i_842738a608ab.jpeg.jpeg?alt=media&#x26;token=7d63ebf3-07e9-44b0-9910-4639ba8a0873" alt=""><figcaption></figcaption></figure>

* **Logs** - Logs from multiple applications can be centrally managed to enable efficient logging.

<figure><img src="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2FaW5x08Ih6ZNQ5GWl71gL%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202025-04-17%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%204.46.07.png?alt=media&#x26;token=aeed818e-6c17-4e93-9c68-53358b89dc7a" alt=""><figcaption></figcaption></figure>

## Tech Stack

<table data-view="cards"><thead><tr><th></th><th></th><th data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>TimescaleDB</td><td>Efficient Data Storage</td><td></td><td><a href="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2FGlKv5UcCXZZ3VK7HmBFI%2Ftimescaledb.jpg?alt=media&#x26;token=121be6cd-a00f-476e-9c25-1e8c8e69e296">timescaledb.jpg</a></td></tr><tr><td>Grafana</td><td>Visualization</td><td></td><td><a href="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2FSAO9LGBEVUQYMRsRpv3o%2Fgrafana.jpg?alt=media&#x26;token=cd19d2e5-470e-4b18-8446-40ea3d73e3cb">grafana.jpg</a></td></tr><tr><td>Bytebuddy</td><td>Zero-Code</td><td></td><td><a href="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2F7BlhFXURkpEmebHS979J%2Fbytebuddy.png?alt=media&#x26;token=54867f22-51d3-48c7-9ee8-28ab9e410c46">bytebuddy.png</a></td></tr><tr><td>OpenTelemetry</td><td>Observability</td><td><a href="https://opentelemetry.io/">https://opentelemetry.io/</a></td><td><a href="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2FzivJ9q9DNBfwRmd23gz5%2Flogo-wordmark-001.png?alt=media&#x26;token=d039c65b-bdce-436e-bf84-88a52715b407">logo-wordmark-001.png</a></td></tr><tr><td>Zipkin</td><td>Trace Manger</td><td><a href="https://zipkin.io/">https://zipkin.io/</a></td><td><a href="https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2F8nuiO1XdRrz8zTMYWQjb%2F%E1%84%83%E1%85%A1%E1%84%8B%E1%85%AE%E1%86%AB%E1%84%85%E1%85%A9%E1%84%83%E1%85%B3.png?alt=media&#x26;token=2d9402c0-4cfb-4a8c-981b-75535a7057f9">다운로드.png</a></td></tr></tbody></table>

## Supported instrumentation plugin

* The plugin attempts instrumentation with the following versions. If the version is too low, instrumentation may fail. If instrumentation is not attempted and a critical error occurs, please create a GitHub issue.

<table><thead><tr><th width="329.58203125">Instumentation plugin</th><th width="138.31640625">Version</th><th>Note</th></tr></thead><tbody><tr><td>Servlet</td><td>6.0.0+</td><td>Support jakarta,<br>Not Support javax</td></tr><tr><td>Spring web-mvc</td><td>6.2.0+</td><td></td></tr><tr><td>Spring Boot</td><td>3.2.0+</td><td>Support RestClinet<br>Not support RestTemplate</td></tr><tr><td>JDBC</td><td>Java 21+</td><td></td></tr><tr><td>HttpClient</td><td>Java 21+</td><td></td></tr><tr><td>HttpUrlConnection</td><td>Java 21+</td><td></td></tr><tr><td>Hibernate</td><td>6.0.0+</td><td>LikageError Issue, <br>Not Support</td></tr><tr><td>Logger</td><td>Java 21+</td><td>java.util.Logger</td></tr><tr><td>LogBack</td><td>1.5.0+</td><td>ch.qos.logback</td></tr></tbody></table>

## Architecture

* Traffic Hunter operates as a push model.

![Traffic Hunter Architecture](https://68020597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rr4rsoAADYwfjtvcIx0%2Fuploads%2FZK4aTA2Zse0422m79wJo%2FDrawing%202025-03-30%2015.40.58.excalidraw.png?alt=media\&token=596af37e-a7a2-4729-b3e2-56e6f55874c5)

## License

```
The MIT License

Copyright (c) 2024 traffic-hunter.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
