mirror of
https://github.com/bytedance/g3.git
synced 2026-04-30 20:50:27 +00:00
update doc
This commit is contained in:
parent
8b07f60c64
commit
7f6749b984
1 changed files with 3 additions and 3 deletions
|
|
@ -105,15 +105,15 @@ g3proxy采用模块化方式进行功能设计,主要包含以下功能模块
|
|||
|
||||
### 监控
|
||||
|
||||
为方便接入各种监控解决方案,G3项目统一使用[statsd](https://www.datadoghq.com/blog/statsd/)作为监控打点输出协议,
|
||||
用户可以根据自己的实际情况选择合适的statsd实现(例如[gostatsd](https://github.com/atlassian/gostatsd)),配置好然后接入自己的监控系统。
|
||||
为方便接入各种监控解决方案,G3项目统一使用[StatsD](https://www.datadoghq.com/blog/statsd/)作为监控打点输出协议,
|
||||
用户可以根据自己的实际情况选择合适的StatsD实现(例如[gostatsd](https://github.com/atlassian/gostatsd)),配置好然后接入自己的监控系统。
|
||||
|
||||
g3proxy的监控配置在主配置文件*main.yml*中进行配置,示例如下:
|
||||
|
||||
```yaml
|
||||
stat:
|
||||
target:
|
||||
udp: 127.0.0.1:8125 # statsd的UDP套接字地址
|
||||
udp: 127.0.0.1:8125 # StatsD的UDP套接字地址
|
||||
# unix: /run/statsd.sock
|
||||
prefix: g3proxy # 打点名称前缀,比如 server.task.total 会转变为 g3proxy.server.task.total
|
||||
emit_duration: 200ms # 打点间隔
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue