Closed maple5233 closed 2 years ago
看文档,xtransit 都没接入怎么会有实例。
可以参考文档里的架构图,xprofiler 只是一个生成性能日志的插件,xtransit 是一个类似 agent 一样的客户端,负责将实例接入监控服务端中,并且定时上报日志。
看文档,xtransit 都没接入怎么会有实例。
感谢回答 @hyj1991 xtransit是有接入的
$ xtransit list
|- App ID -|- PID -|---- Start Time -----|--- Config Path ------------------------------------|
| 1 | 52623 | 2021-11-29 18:47:19 | code/shopee/easy-monitor/config.js |
|----------|-------|---------------------|----------------------------------------------------|
// config.js
module.exports = {
// I. 必须的配置(一定要写)
server: `ws://127.0.0.1:9090`, // 填写前一节中部署的 xtransit-server 地址
appId: 1, // 创建应用得到的应用 ID
appSecret: '这个copy了', // 创建应用得到的应用 Secret
// III. 不是很重要的可选的配置(不知道怎么配置的别传任何值)
logDir: '/tmp', // xprofiler 插件生成性能日志文件的目录,默认两者均为 os.tmpdir()
};
xtransit-server 也换个端口 9091,然后 xtransit 那边配置也改下
有些机器上 9090 端口被代理占用掉了
xtransit-server 也换个端口 9091,然后 xtransit 那边配置也改下
好了 感谢~~~
可以加钉钉群,有问题在那响应会快一些
可以加钉钉群,有问题在那响应会快一些
已经加啦
xprofiler-console 输出
xtransit-manager 输出
xtransit-server 输出
mysql 无任何数据
tmp目录下日志正常
node代码