wu-sheng commented on a change in pull request #7637:
URL: https://github.com/apache/skywalking/pull/7637#discussion_r700932626
##########
File path: docs/en/setup/backend/backend-meter.md
##########
@@ -17,14 +18,29 @@ kafka-fetcher:
bootstrapServers: ${SW_KAFKA_FETCHER_SERVERS:localhost:9092}
```
+## Meter collection
+There are plentiful metrics are collected by default, you may find predefined
metrics by oal files located in `config/oal/`.
+
+Custom metrics may be collected by Manual Meter API. You may find correct APIs
diving into [Server Agents](../service-agent/server-agents.md).
+Custom metrics collected cannot be used directly, they should be configured in
`meter-analyzer-config` configuration files, which is described in next part.
+
## Configuration file
The meter receiver is configured via a configuration file. The configuration
file defines everything related to receiving
from agents, as well as which rule files to load.
The OAP can load the configuration at bootstrap. If the new configuration is
not well-formed, the OAP may fail to start up. The files
are located at `$CLASSPATH/meter-analyzer-config`.
-The file is written in YAML format, defined by the scheme described below.
Brackets indicate that a parameter is optional.
+New meter-analyzer-config files is **NOT** enabled by default, you should make
meter configuration take effect through section `agent-analyzer` in
`application.yml` of skywalking backend.
+```yaml
+ agent-analyzer:
+ selector: ${SW_AGENT_ANALYZER:default}
+ default:
+ # ... take care of other analyzers
+ meterAnalyzerActiveFiles:
${SW_METER_ANALYZER_ACTIVE_FILES:your-custom-meter-conf-without-ext-name} #
files could be meter analyzed, files split by ","
Review comment:
```suggestion
meterAnalyzerActiveFiles:
${SW_METER_ANALYZER_ACTIVE_FILES:your-custom-meter-conf-without-ext-name} # The
multiple files should be separated by ","
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]