✨ feat(monitor): 修改监控配置,显示机器名进程名
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// config
|
||||
|
||||
const fs = require('fs');
|
||||
module.exports = {
|
||||
// I. 必须的配置
|
||||
server: 'ws://172.16.4.147:9092', // 填写前一节中部署的 xtransit-server 地址
|
||||
@@ -20,5 +20,8 @@ module.exports = {
|
||||
logger: console, // 可以传入应用日志句柄方便日志统一管理,需要实现 error, info, warn 和 debug 四个方法
|
||||
logLevel: 2, // 默认内置 logger 的日志级别,0 error,1 info,2 warning,3 debug,
|
||||
titles: [], // 数组,如果应用使用了 process.title 自定义了名称,可以通过配置这里上报进程数据
|
||||
customAgent: () => {
|
||||
const hostname = fs.readFileSync('/etc/aliashost', 'utf8').trim();
|
||||
return hostname;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user