未验证 提交 0a9a746e 编写于 作者: G Gao Hongtao 提交者: GitHub

Update backend-fetcher.md (#5972)

上级 4aa9f301
...@@ -28,7 +28,7 @@ Release Notes. ...@@ -28,7 +28,7 @@ Release Notes.
* Fix trace instance selector bug. * Fix trace instance selector bug.
#### Documentation #### Documentation
* Update the documents of backend fetcher and self observability about the latest configurations.
All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/68?closed=1) All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/68?closed=1)
......
...@@ -3,11 +3,14 @@ Fetcher is a concept in SkyWalking backend. It uses pulling mode rather than [re ...@@ -3,11 +3,14 @@ Fetcher is a concept in SkyWalking backend. It uses pulling mode rather than [re
read the data from the target systems. This mode is typically in some metrics SDKs, such as Prometheus. read the data from the target systems. This mode is typically in some metrics SDKs, such as Prometheus.
## Prometheus Fetcher ## Prometheus Fetcher
Suppose you want to enable some `metric-custom.yaml` files stored at `fetcher-prom-rules`, append its name to `enabledRules` of
`promethues-fetcher` as below:
```yaml ```yaml
prometheus-fetcher: prometheus-fetcher:
selector: ${SW_PROMETHEUS_FETCHER:default} selector: ${SW_PROMETHEUS_FETCHER:default}
default: default:
active: ${SW_PROMETHEUS_FETCHER_ACTIVE:false} enabledRules: ${SW_PROMETHEUS_FETCHER_ENABLED_RULES:"self,metric-custom"}
``` ```
### Configuration file ### Configuration file
......
...@@ -74,7 +74,7 @@ telemetry: ...@@ -74,7 +74,7 @@ telemetry:
prometheus-fetcher: prometheus-fetcher:
selector: ${SW_PROMETHEUS_FETCHER:default} selector: ${SW_PROMETHEUS_FETCHER:default}
default: default:
active: ${SW_PROMETHEUS_FETCHER_ACTIVE:true} enabledRules: ${SW_PROMETHEUS_FETCHER_ENABLED_RULES:"self"}
``` ```
3. Make sure `config/fetcher-prom-rules/self.yaml` exists. 3. Make sure `config/fetcher-prom-rules/self.yaml` exists.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册