vue+admin:添加阿里云应用实时监控服务ARAMS

先创建应用站点-》系统自动生成pid编号-》 下载包( npm install alife-logger --save )-》在main.ts中配置即可。

// main.ts
const BrowserLogger = require('alife-logger')
const __bl = BrowserLogger.singleton({
  pid: 'xxxxxxxxxxxxxxx',  // 项目Id,新建一个应用站点后,系统自动生成。
  appType: 'web',
  imgUrl: 'https://arms-retcode.aliyuncs.com/r.png?', // 日志上传地址(官方给的)
  sendResource: true, // 是否上报资源数据
  enableLinkTrace: true,
  behavior: true
})

阿里云监控API使用说明文档:https://help.aliyun.com/document_detail/58655.html?spm=a2c4g.11186623.6.692.4a7e4d29lYuDkc#apihelper

阿里云监测大盘显示:https://arms.console.aliyun.com/retcode/?pid=dqph7prh0s@30408107996b886#/dashboard

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值