Skip to content

Commit 714f893

Browse files
committed
docs
1 parent 240c113 commit 714f893

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

README-ELK.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For stack analysis patterns (KQL, Dev Tools queries, trends, top classes/methods
1212

1313
## Table of Contents
1414

15+
- [Architecture](#architecture)
1516
- [What You Get](#what-you-get)
1617
- [1) Start the ELK Stack](#1-start-the-elk-stack)
1718
- [2) Open Kibana UI](#2-open-kibana-ui)
@@ -23,6 +24,43 @@ For stack analysis patterns (KQL, Dev Tools queries, trends, top classes/methods
2324
- [Troubleshooting](#troubleshooting)
2425
- [Stop the Stack](#stop-the-stack)
2526

27+
## Architecture
28+
29+
```
30+
Your JVM (instrumented app)
31+
┌─────────────────────────────────────────────────────────────┐
32+
│ │
33+
│ ┌──────────────────────┐ ┌───────────────────────┐ │
34+
│ │ JCT Agent │ │ Recorder │ │
35+
│ │ -javaagent:jct.jar │────▶│ records call stacks │ │
36+
│ └──────────────────────┘ └─────────────┬─────────┘ │
37+
│ │ │
38+
│ ┌──────────────────▼────────────┐ │
39+
│ │ Stack Processor │ │
40+
│ │ AsyncUdpStackProcessor or │ │
41+
│ │ AsyncTcpStackProcessor │ │
42+
│ └──────────────────┬────────────┘ │
43+
└─────────────────────────────────────────────┼───────────────┘
44+
45+
UDP / TCP ▼ port 9999
46+
┌────────────────────────────────────────┐
47+
│ Docker Compose │
48+
├────────────────────────────────────────┤
49+
│ │
50+
│ ┌──────────────┐ ┌───────────────┐ │
51+
│ │ Logstash │─▶│Elasticsearch │ │
52+
│ │ UDP + TCP │ │ jct-events-* │ │
53+
│ │ :9999 │ │ :9200 │ │
54+
│ └──────────────┘ └───────┬───────┘ │
55+
│ │ │
56+
│ ┌────────────▼────────┐ │
57+
│ │ Kibana │ │
58+
│ │ Discover / Lens / │ │
59+
│ │ Dev Tools :5601 │ │
60+
│ └─────────────────────┘ │
61+
└────────────────────────────────────────┘
62+
```
63+
2664
## What You Get
2765

2866
- Elasticsearch on `http://localhost:9200`

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,18 @@ It helps answer one practical question in large systems: "Is this code path stil
3131

3232
For local experimentation, the recommended setup is:
3333

34-
- JCT -> UDP -> Logstash -> Elasticsearch -> Kibana
34+
```
35+
-javaagent:jct.jar Docker Compose
36+
┌─────────────────┐ ┌───────────────────────────────────┐
37+
│ JCT Agent │ │ Logstash :9999 │
38+
│ Recorder │────▶│ │ │
39+
│ Stack │ │ ▼ │
40+
│ Processor │ │ Elasticsearch (jct-events-*) │
41+
│ UDP / TCP │ │ │ │
42+
└─────────────────┘ │ ▼ │
43+
│ Kibana :5601 │
44+
└───────────────────────────────────┘
45+
```
3546

3647
This gives you a fast feedback loop with searchable traces and a UI for exploration.
3748

0 commit comments

Comments
 (0)