ShardingSphere-Agent module provides an observable framework for ShardingSphere, which is implemented based on Java Agent.
Metrics, tracing and logging functions are integrated into the agent through plugins, as shown in the following figure:
The Metrics plugin is used to collect and display statistical indicators for the entire cluster. Apache ShardingSphere supports Prometheus by default.
The tracing plugin is used to obtain the link trace information of SQL parsing and SQL execution. Apache ShardingSphere provides support for Jaeger, OpenTelemetry, OpenTracing(SkyWalking) and Zipkin by default. It also supports users developing customized tracing components through plugin.
The default logging plugin shows how to record additional logs in ShardingSphere. In practical applications, users need to explore according to their own needs.