Use Agent
Build
Local Build
> cd shardingsphere/shardingsphere-agent
> mvn clean install
Download(Not Released Yet)
> weget http://xxxxx/shardingsphere-agent.tar.gz
> tar -zxvcf shardingsphere-agent.tar.gz
Configuration
Found agent.yaml
file:
applicationName: shardingsphere-agent
ignoredPluginNames: # A collection of ignored plugins
- Opentracing
- Jaeger
- Zipkin
- Prometheus
- OpenTelemetry
- Logging
plugins:
Prometheus:
host: "localhost"
port: 9090
props:
JVM_INFORMATION_COLLECTOR_ENABLED : "true"
Jaeger:
host: "localhost"
port: 5775
props:
SERVICE_NAME: "shardingsphere-agent"
JAEGER_SAMPLER_TYPE: "const"
JAEGER_SAMPLER_PARAM: "1"
JAEGER_REPORTER_LOG_SPANS: "true"
JAEGER_REPORTER_FLUSH_INTERVAL: "1"
Zipkin:
host: "localhost"
port: 9411
props:
SERVICE_NAME: "shardingsphere-agent"
URL_VERSION: "/api/v2/spans"
Opentracing:
props:
OPENTRACING_TRACER_CLASS_NAME: "org.apache.skywalking.apm.toolkit.opentracing.SkywalkingTracer"
OpenTelemetry:
props:
otel.resource.attributes: "service.name=shardingsphere-agent" # Multiple configurations can be split by ','
otel.traces.exporter: "zipkin"
Logging:
props:
LEVEL: "INFO"
Startup
Add arguments in startup script.
-javaagent:\absolute path\shardingsphere-agent.jar
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .