You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/04/11 03:51:22 UTC

[GitHub] wu-sheng closed pull request #1048: Create Setting-override-CN.md

wu-sheng closed pull request #1048: Create Setting-override-CN.md
URL: https://github.com/apache/incubator-skywalking/pull/1048
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/cn/Setting-override-CN.md b/docs/cn/Setting-override-CN.md
new file mode 100644
index 000000000..f009dff4b
--- /dev/null
+++ b/docs/cn/Setting-override-CN.md
@@ -0,0 +1,38 @@
+# 自定义设置
+## 支持版本
+5.0.0-beta + 
+
+_Agent 自定义设置 从 3.2.5_ 版本开始支持。
+
+## 什么是自定义设置?
+ SkyWalking 默认为客户端提供 `agent.config`和 `application.yml` 文件用于服务端设置. 
+
+自定义设置是指终端用户可以在一些配置文件里使用内置属性自定义相关配置。
+
+## 自定义优先级
+系统属性(-D) > 配置文件
+ 
+## 自定义
+### 代理
+在配置文件里使用 `skywalking.` + key 作为系统属性和环境变量去自定义对应的值.
+
+- 为什么要使用`skywalking.`这个前缀?
+
+ 代理系统和目标应用会共享属性和环境变量,所以使用这个前缀避免同名变量冲突。
+  
+### 收集器
+在配置文件里使用 key 作为系统属性和环境变量去自定义对应的值.
+
+例如:
+- 在 `application.yml`文件里设置
+```yaml
+agent_gRPC:
+  gRPC:
+    host: localhost
+    port: 11800
+```
+
+- 使用系统属性重写端口到 31200,并且把下面这行代码添加到 startup 脚本里.
+```
+-Dagent_gRPC.gRPC.port=31200
+```


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services