未验证 提交 553dd7c0 编写于 作者: 静夜思朝颜's avatar 静夜思朝颜 提交者: GitHub

Disable spring sleuth analyzer by default (#7106)

上级 eace27e4
...@@ -11,7 +11,7 @@ Release Notes. ...@@ -11,7 +11,7 @@ Release Notes.
* Supports modifying span attributes in async mode. * Supports modifying span attributes in async mode.
#### OAP-Backend #### OAP-Backend
* Disable Spring sleuth meter analyzer by default.
#### UI #### UI
......
...@@ -30,6 +30,10 @@ The file is written in YAML format, defined by the scheme described below. Brack ...@@ -30,6 +30,10 @@ The file is written in YAML format, defined by the scheme described below. Brack
An example can be found [here](../../../../oap-server/server-bootstrap/src/main/resources/meter-analyzer-config/spring-sleuth.yaml). An example can be found [here](../../../../oap-server/server-bootstrap/src/main/resources/meter-analyzer-config/spring-sleuth.yaml).
If you're using Spring Sleuth, see [Spring Sleuth Setup](spring-sleuth-setup.md). If you're using Spring Sleuth, see [Spring Sleuth Setup](spring-sleuth-setup.md).
| Rule Name | Description | Configuration File | Data Source |
|-----|-----|-----|-----|
|spring-sleuth| Metrics of Spring Sleuth Application | meter-analyzer-config/spring-sleuth.yaml | Sprign Sleuth Application --meter format--> SkyWalking OAP Server |
### Meters configuration ### Meters configuration
```yaml ```yaml
......
...@@ -148,6 +148,18 @@ receiver-meter: ...@@ -148,6 +148,18 @@ receiver-meter:
default: default:
``` ```
To activate the meter rule files:
```yaml
agent-analyzer:
selector: ${SW_AGENT_ANALYZER:default}
default:
meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:} # Which files could be meter analyzed, files split by ","
```
The receiver adds labels with `key = service` and `key = instance` to the collected data samples,
and values from service and service instance name defined in SkyWalking Agent,
for identification of the metric data.
## Zipkin receiver ## Zipkin receiver
The Zipkin receiver makes the OAP server work as an alternative Zipkin server implementation. It supports Zipkin v1/v2 formats through HTTP service. The Zipkin receiver makes the OAP server work as an alternative Zipkin server implementation. It supports Zipkin v1/v2 formats through HTTP service.
Make sure you use this with `SW_STORAGE=zipkin-elasticsearch7` option to activate Zipkin storage implementation. Make sure you use this with `SW_STORAGE=zipkin-elasticsearch7` option to activate Zipkin storage implementation.
......
...@@ -38,6 +38,14 @@ receiver-meter: ...@@ -38,6 +38,14 @@ receiver-meter:
2. Configure the meter config file, It already has the [spring sleuth meter config](../../../../oap-server/server-bootstrap/src/main/resources/meter-analyzer-config/spring-sleuth.yaml). 2. Configure the meter config file, It already has the [spring sleuth meter config](../../../../oap-server/server-bootstrap/src/main/resources/meter-analyzer-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. If you also has some customized meter at the agent side, please read [meter document](backend-meter.md#meters-configure) to configure meter.
3. Enable Spring sleuth config in the `applicaiton.yml`.
```yaml
agent-analyzer:
selector: ${SW_AGENT_ANALYZER:default}
default:
meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:spring-sleuth}
```
## Add UI dashboard ## Add UI dashboard
......
...@@ -256,7 +256,7 @@ agent-analyzer: ...@@ -256,7 +256,7 @@ agent-analyzer:
# Exit spans with the component in the list would not generate the client-side instance relation metrics. # Exit spans with the component in the list would not generate the client-side instance relation metrics.
noUpstreamRealAddressAgents: ${SW_NO_UPSTREAM_REAL_ADDRESS:6000,9000} noUpstreamRealAddressAgents: ${SW_NO_UPSTREAM_REAL_ADDRESS:6000,9000}
slowTraceSegmentThreshold: ${SW_SLOW_TRACE_SEGMENT_THRESHOLD:-1} # Setting this threshold about the latency would make the slow trace segments sampled if they cost more time, even the sampling mechanism activated. The default value is `-1`, which means would not sample slow traces. Unit, millisecond. slowTraceSegmentThreshold: ${SW_SLOW_TRACE_SEGMENT_THRESHOLD:-1} # Setting this threshold about the latency would make the slow trace segments sampled if they cost more time, even the sampling mechanism activated. The default value is `-1`, which means would not sample slow traces. Unit, millisecond.
meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:spring-sleuth} # Which files could be meter analyzed, files split by "," meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:} # Which files could be meter analyzed, files split by ","
log-analyzer: log-analyzer:
selector: ${SW_LOG_ANALYZER:default} selector: ${SW_LOG_ANALYZER:default}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册