Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agentx

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentx

agentx is powered by alinode

  • 1.9.6
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
decreased by-4.12%
Maintainers
3
Weekly downloads
 
Created
Source

AgentX

AgentX是alinode团队开发的agent命令程序,用于协助alinode的性能数据上报和问题诊断。

  • Build Status
  • Dependencies Status
  • codecov

Installation

$ npm install agentx -g

以上命令会将agentx安装为一个全局的命令行工具。

Usage

agentx需要一个配置文件来进行使用,agentx仅会在配置指定下的目录执行命令或读取日志。

该配置格式如下:

{
  "server": "<SERVER IP>:8080",
  "appid": "<YOUR APPID>",
  "secret": "<YOUR SECRET>",
  "cmddir": "</path/to/your/command/dir>",
  "logdir": "</path/to/your/log/dir>",
  "reconnectDelay": 10,
  "heartbeatInterval": 60,
  "reportInterval": 60,
  "error_log": [
    "</path/to/your/error.log>",
    "您的应用在业务层面产生的异常日志的路径",
    "例如:/root/.logs/error.#YYYY#-#MM#-#DD#-#HH#.log",
    "可选"
  ],
  "packages": [
    "</path/to/your/package.json>",
    "可以输入多个package.json的路径",
    "可选"
  ]
}

配置中的#YYYY#、#MM#、#DD#、#HH#是通配符,如果您的异常日志是按时间生成的,请使用它。

保存为config.json。上述不明确的地方请咨询旺旺群:1406236180。

完成配置后,请使用以下命令进行执行:

$ nohup agentx config.json &

agentx将以常驻进程的方式执行。部署完成后,请访问http://alinode.aliyun.com/dashboard查看您的应用详情。如果一切正常,稍等片刻(1分钟)即可收到你的应用性能数据。

License

The agentx is released under the MIT license.

FAQs

Package last updated on 25 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc