61 lines
1.5 KiB
Markdown
61 lines
1.5 KiB
Markdown
# Manager
|
|
|
|
Manager 是一个常驻后台运行的进程,它在蜻蜓中扮演各个子系统集群大脑的角色, 用于管理各个系统模块依赖的动态配置,以及提供心跳保活、监控大盘和产品化的功能。
|
|
|
|
## 用法
|
|
|
|
```text
|
|
manager [Option]
|
|
```
|
|
|
|
## 日志配置
|
|
|
|
```text
|
|
1. 终端日志输出: --console
|
|
2. 日志目录: /var/log/dragonfly/manager/
|
|
```
|
|
|
|
## 指标输出
|
|
|
|
```text
|
|
启动时配置参数: --pprof-port port
|
|
```
|
|
|
|
## Swagger 支持
|
|
|
|
端点: /swagger/doc.json
|
|
|
|
## Prometheus 集成
|
|
|
|
端点: /metrics
|
|
|
|
## 健康检查
|
|
|
|
端点: /healthy/
|
|
|
|
## jaeger 集成
|
|
|
|
```text
|
|
启动时配置 --jaeger http://localhost:14250/api/traces
|
|
```
|
|
|
|
## 可选参数
|
|
|
|
```text
|
|
--config string the path of configuration file with
|
|
yaml extension name, default is
|
|
/etc/dragonfly/manager.yaml,
|
|
it can also be set by env var: MANAGER_CONFIG
|
|
--console whether logger output records to the stdout
|
|
-h, --help help for manager
|
|
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
|
|
--pprof-port int listen port for pprof,
|
|
0 represents random port (default -1)
|
|
--service-name string name of the service for tracer (default "dragonfly-manager")
|
|
--verbose whether logger use debug level
|
|
```
|
|
|
|
## 配置文件
|
|
|
|
[配置样例](../config/manager.yaml)
|