监控
准备工作
配置prometheus
在scrape_configs节点下新增WuKongIM的监控项目
job_name: 唯一job名字
targets: 为WuKongIM的内网ip + 5300端口
labels: id为WuKongIM的nodeId
yaml
...
scrape_configs:
...
- job_name: xxxx-trace-metrics
static_configs:
- targets: ['xx.xx.xx.xx:5300']
labels:
id: "xxxx"
...xx.xx.xx.xx 替换为WuKongIM的内网ip地址
xxxx 替换为WuKongIM的nodeId
配置WuKongIM
在各节点的wk.yaml文件中配置prometheus的地址
yaml
trace:
prometheusApiUrl: "http://xx.xx.xx.xx:9090"xx.xx.xx.xx替换为prometheus的内网ip地址
