Spring Sleuth provides Spring Boot auto-configuration for distributed tracing. Skywalking integrates it's micrometer part, and it can send metrics to the Skywalking Meter System.
pom.xml
file. Also you could found more detail at Toolkit micrometer.<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.apache.skywalking</groupId> <artifactId>apm-toolkit-micrometer-registry</artifactId> <version>${skywalking.version}</version> </dependency>
@Bean SkywalkingMeterRegistry skywalkingMeterRegistry() { // Add rate configs If you need, otherwise using none args construct SkywalkingConfig config = new SkywalkingConfig(Arrays.asList("")); return new SkywalkingMeterRegistry(config); }
applicaiton.yml
.receiver-meter: selector: ${SW_RECEIVER_METER:default} default:
Open the dashboard view, click edit
button to edit the templates.
Create a new template. Template type: Standard
-> Template Configuration: Spring
-> Input the Template Name.
Click view
button, Finally get the spring sleuth dashboard.
Supported 3 types information: Application, System, JVM.