How scouter-project/scouter works
SCOUTER is an open-source APM system: agents collect host and JVM/application metrics and traces, send them to a collector server, and users inspect the resulting counters, profiles, and alerts through desktop or HTTP interfaces. The Java agent instruments application and dependency calls; the host agent samples operating-system resources. Batch monitoring and Weaver provide additional agent-side capabilities. The graph follows README-documented flows and the sampled host-counter sender; most implementation links for server persistence and UI/API requests were not sampled, so those are omitted.
Main entry points: AgentBoot.java Java agent · agent/Main.java Host agent · task Host metrics · batch/Main.java Batch agent
Components 19
Monitoring agents
- Java agent
scouter.agent.java/src/main/java/scouter/agent/AgentBoot.java - Bytecode instrumentation
scouter.agent.java/src/main/java/scouter/agent/asm - JVM metrics
scouter.agent.java/src/main/java/scouter/agent/counter/task - Host agent
scouter.agent.host/src/main/java/scouter/agent/Main.java - Host metrics
scouter.agent.host/src/main/java/scouter/agent/counter/task - Batch agent
scouter.agent.batch/src/main/java/scouter/agent/batch/Main.java - Telegraf inputs
Collection and storage
- Collector server
- Alert engine
scouter.server/src/main/java/scouter/server/plugin/alert/AlertEngine.java - Zipkin storage
User interfaces
- Desktop client
scouter.client/src/scouter/client/PerspectiveService.java - Web API
scouter.webapp/src/main/java/scouterx/webapp/layer/controller/SummaryController.java
Shared runtime
- Counter catalog
scouter.server/src/main/java/scouter/server/CounterManager.java - Counter definitions
scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java - Request protocol
scouter.common/src/main/java/scouter/net/RequestCmd.java
Agent extensions
- Weaver controls
scouter.weaver/src/main/java/scouterx/weaver/Scouter.java - Server plugins
scouter.server/src/main/java/scouter/server/plugin/PlugInManager.java
Other components
- Application
- Telemetry sources
Connections 17
- Application → Java agent: runs under
README.md - Java agent → Bytecode instrumentation: instruments calls
- Java agent → JVM metrics: collects metrics
- Java agent → Collector server: sends telemetry
README.md - Host agent → Host metrics: schedules collection
- Host metrics → Host agent: sends counters
- Host agent → Collector server: sends telemetry
README.md - Batch agent → Collector server: sends telemetry
README.md - Telegraf inputs → Collector server: sends metrics
README.md - Telemetry sources → Zipkin storage: stores traces
README.md - Zipkin storage → Collector server: provides XLogs
README.md - Collector server → Desktop client: streams data
README.md - Collector server → Web API: serves metrics
README.md - Collector server → Alert engine: evaluates alerts
- Collector server → Server plugins: dispatches plugins
- Counter catalog → Counter definitions: parses definitions
scouter.server/src/main/java/scouter/server/CounterManager.java - Weaver controls → Application: controls XLogs
README.md