mrproliu commented on a change in pull request #4972:
URL: https://github.com/apache/skywalking/pull/4972#discussion_r460393779



##########
File path: docs/en/setup/backend/spring-sleuth-setup.md
##########
@@ -0,0 +1,63 @@
+# Spring sleuth setup
+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](./../../concepts-and-designs/meter.md).
+
+## Set up agent
+
+1. Add the Micrometer and Skywalking meter registry dependency into project 
`pom.xml` file. Also you could found more detail at [Toolkit 
micrometer](./../service-agent/java-agent/Application-toolkit-micrometer.md).
+```xml
+<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>
+```
+
+2. Create the Skywalking meter resgitry into spring bean management.
+```java
+@Bean
+SkywalkingMeterRegistry skywalkingMeterRegistry() {
+    // Add rate configs If you need, otherwise using none args construct
+    SkywalkingConfig config = new SkywalkingConfig(Arrays.asList(""));
+    return new SkywalkingMeterRegistry(config);
+}
+```
+
+## Set up backend receiver
+
+1. Enable meter receiver in the `applicaiton.yml`.
+```yaml
+receiver-meter:
+  selector: ${SW_RECEIVER_METER:default}
+  default:
+```
+
+2. Configure the meter config file, It already has the [spring sleuth meter 
config](../../../../oap-server/server-bootstrap/src/main/resources/meter-receive-config/spring-sleuth.yaml).
+If you also has some customized meter at the agent side, please read [meter 
document](backend-meter.md#meters-configure) to configure meter.
+
+## Add UI dashboard
+
+1. Open the dashboard view, click `edit` button to edit the templates.
+
+    ![Click edit 
button](http://skywalking.apache.org/screenshots/8.0.0/spring-sleuth-setup-ui-20200723-01.png)
+
+1. Create a new template. Template type: `Standard` -> Template Configuration: 
`Spring` -> Input the Template Name.
+
+    ![Create 
template](http://skywalking.apache.org/screenshots/8.0.0/spring-sleuth-setup-ui-20200723-02.png)
+
+1. Click `view` button, Finally get the spring sleuth dashboard.
+
+    ![Save 
template](http://skywalking.apache.org/screenshots/8.0.0/spring-sleuth-setup-ui-20200723-03.png)
+    ![Spring Sleuth 
Dashboard](http://skywalking.apache.org/screenshots/8.0.0/spring-sleuth-setup-ui-20200723-04.png)
+
+## Supported meter
+
+Supported 3 types information: Application, System, JVM.
+
+1. Application: HTTP request count and duration, JDBC max/idle/active 
connection count.

Review comment:
       Has changed the dashboard.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to