pandora
A powerful and lightweight application manager for Node.js applications powered by TypeScript.
Last updated 8 months ago by guangwong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pandora 
SYNC missed versions from official npm registry.

Pandora.js 2.0

GitHub license GitHub tag Build Status Test Coverage Package Quality lerna Known Vulnerabilities PRs Welcome

Node.js >= 8.2.1 required.

简介

Pandora.js 2.0 是一个 Node.js 应用的进程管理与监控工具,主要包括了几个部分:

一、进程管理及命令行工具

$ npm install -g pandora@release-2.x

可以通过 pandora start 启动应用,Pandora.js 会自动查找当前目录下的 procfile.js 的进程结构定义进行启动。与 Pandora.js 1.0 不同的是,Pandora.js 2.0 为了更好的适配现如今流行的进程容器模式,默认是前台启动的。如果希望后台启动请增加 -d 参数。

更多了解进程管理与命令行工具请参考相关文档

二、CoreSDK 以及基础组件

进程启动器 pandora 集成了 pandora-core-sdk,pandora-core-sdk 默认内置了 Pandora.js 进行 Node.js 应用监控所需基础组件,包括:

组件 作用
actuatorServer 提供 Restful 的应用监控数据的获取,以及下行控制管道的接口
ipcHub Pandora.js 进程间通信的基础
indicator 对于监控指标的注册管理,以及跨进程的监控数据查询
metrics 提供接口创建各类 Metrics ,供下游业务组件收集各类数据使用
trace 收集 Trace 信息,提供 record() 接口供下游业务接口进行写入
errorLog 收集错误日志信息,提供 record() 接口供下游业务接口进行写入
reporterManager 向 metrics、trace、errorLog 组件收集或订阅数据,向注册的 Reporter 写入

三、其他默认集成的业务组件

组件 作用
httpServerMetrics 创建相应 Metrics ,收集 HTTP Server 的 QPS、RT 等
nodeMetrics 收集 Node.js 运行时的内存分布等信息
systemMetrics 收集操作系统内存、CPU Usage、Load 等
processInfo 收集进程的静态信息,如启动参数等
deadCounter 通过 IPC-HUB 的断线统计进程意外退出的次数
fileLoggerService 带日志切割的 LoggerService,用于写入文本日志
sandboxFileReporter 向 reporterManager 注册 metrics、trace、errorLog 三类 Reporter,通过 fileLoggerService 写入文本日志

四、AutoPaching

Pandora.js 2.0 亦提供 pandora-component-auto-patching 组件,通过通用的模块 Pachting、AyncHooks 等技术,自动向各类型的 Node.js 应用注入监控逻辑。自动获得 metrics、trace、errorLog 三类数据。

现在 pandora@2 已经默认集成该组件,开箱即可用。目前支持获取的数据包括:

基础:

功能 详细
错误日志 console、promise 异常等皆可自动捕获
HTTP Server QPS 可以统计所有 HTTP Server 的 QPS、RT 等

链路相关:

节点 支持版本 解释
http(s).createServer() - 所有的 HTTP(S) 服务器,包括用 koa、express 等创建的
http(s).request() - 所有发出的 HTTP(S) 请求,包括通过 request、urllib 等库发出的
npm: mongodb >=2.2.x 也包括依赖 mongodb 的 ORM 比如 mongoose
npm: mysql ^2.x 也包括其他依赖 mysql 的 ORM 比如 sequelize
npm: mysql2 ^1.5 -
npm: ioredis ^3.x -

Docs

How to Contribute

Please let us know how can we help. Do check out issues for bug reports or suggestions first.

To become a contributor, please follow our contributing guide.

License

MIT

Sponsor

Current Tags

  • 1.10.2                                ...           beta (2 years ago)
  • 2.2.0-alpha.f8fb4a54                                ...           canary (a year ago)
  • 2.2.0                                ...           latest (8 months ago)
  • 1.8.27                                ...           next (2 years ago)
  • 2.1.2                                ...           pandora2-beta (a year ago)
  • 2.0.0-y.3                                ...           pre (2 years ago)
  • 2.2.0                                ...           release-2.x (8 months ago)

178 Versions

  • 2.2.0                                ...           8 months ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.2.0-alpha.f8fb4a54                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.6                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.1-0                                ...           2 years ago
  • 2.0.0-zbeta.8                                ...           2 years ago
  • 2.0.0-zbeta.7                                ...           2 years ago
  • 2.0.0-zbeta.5                                ...           2 years ago
  • 2.0.0-zbeta.4                                ...           2 years ago
  • 2.0.0-zbeta.3                                ...           2 years ago
  • 2.0.0-zbeta.2                                ...           2 years ago
  • 2.0.0-zbeta.1                                ...           2 years ago
  • 2.0.0-zbeta.0                                ...           2 years ago
  • 2.0.0-beta.7                                ...           2 years ago
  • 2.0.0-beta.6                                ...           2 years ago
  • 2.0.0-beta.5                                ...           2 years ago
  • 2.0.0-beta.4                                ...           2 years ago
  • 2.0.0-beta.3                                ...           2 years ago
  • 2.0.0-beta.2                                ...           2 years ago
  • 2.0.0-beta.0                                ...           2 years ago
  • 2.0.0-y.3                                ...           2 years ago
  • 2.0.0-y.2                                ...           2 years ago
  • 2.0.0-y.1                                ...           2 years ago
  • 2.0.0-y.0                                ...           2 years ago
  • 2.0.0-9                                ...           2 years ago
  • 2.0.0-8                                ...           2 years ago
  • 2.0.0-7                                ...           2 years ago
  • 2.0.0-6                                ...           2 years ago
  • 2.0.0-5                                ...           2 years ago
  • 2.0.0-4                                ...           2 years ago
  • 2.0.0-3                                ...           2 years ago
  • 2.0.0-2                                ...           2 years ago
  • 2.0.0-1                                ...           2 years ago
  • 2.0.0-0                                ...           2 years ago
  • 1.10.6                                ...           2 years ago
  • 1.10.5                                ...           2 years ago
  • 1.10.4                                ...           2 years ago
  • 1.10.3                                ...           2 years ago
  • 1.10.2                                ...           2 years ago
  • 1.10.1                                ...           2 years ago
  • 1.11.0-alpha.18924565                                ...           2 years ago
  • 1.11.0-alpha.b7ee0ede                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 1.9.2                                ...           2 years ago
  • 1.9.1                                ...           2 years ago
  • 1.9.0                                ...           2 years ago
  • 1.8.27                                ...           2 years ago
  • 1.8.26                                ...           2 years ago
  • 1.8.25                                ...           2 years ago
  • 1.8.24                                ...           2 years ago
  • 1.8.23                                ...           2 years ago
  • 1.8.22                                ...           2 years ago
  • 1.8.21                                ...           2 years ago
  • 1.8.20                                ...           2 years ago
  • 1.8.19                                ...           3 years ago
  • 1.8.18                                ...           3 years ago
  • 1.8.17                                ...           3 years ago
  • 1.8.16                                ...           3 years ago
  • 1.8.15                                ...           3 years ago
  • 1.8.14                                ...           3 years ago
  • 1.8.13                                ...           3 years ago
  • 1.8.12                                ...           3 years ago
  • 1.8.11                                ...           3 years ago
  • 1.8.10                                ...           3 years ago
  • 1.8.9                                ...           3 years ago
  • 1.8.8                                ...           3 years ago
  • 1.8.7                                ...           3 years ago
  • 1.8.6                                ...           3 years ago
  • 1.8.3-1                                ...           3 years ago
  • 1.8.5                                ...           3 years ago
  • 1.8.4                                ...           3 years ago
  • 1.8.3                                ...           3 years ago
  • 1.8.2                                ...           3 years ago
  • 1.8.1                                ...           3 years ago
  • 1.7.12                                ...           3 years ago
  • 1.7.11                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.7.10                                ...           3 years ago
  • 1.7.9                                ...           3 years ago
  • 1.7.8                                ...           3 years ago
  • 1.7.7                                ...           3 years ago
  • 1.7.6                                ...           3 years ago
  • 1.7.5                                ...           3 years ago
  • 1.7.4                                ...           3 years ago
  • 1.7.4-5                                ...           3 years ago
  • 1.7.4-3                                ...           3 years ago
  • 1.7.4-2                                ...           3 years ago
  • 1.7.4-1                                ...           3 years ago
  • 1.7.4-0                                ...           3 years ago
  • 1.7.2                                ...           3 years ago
  • 1.7.1                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.27                                ...           3 years ago
  • 1.6.26                                ...           3 years ago
  • 1.6.25                                ...           3 years ago
  • 1.6.24                                ...           3 years ago
  • 1.6.23                                ...           3 years ago
  • 1.6.22                                ...           3 years ago
  • 1.6.21                                ...           3 years ago
  • 1.6.20                                ...           3 years ago
  • 1.6.19                                ...           3 years ago
  • 1.6.18                                ...           3 years ago
  • 1.6.17                                ...           3 years ago
  • 1.6.16                                ...           3 years ago
  • 1.6.15                                ...           3 years ago
  • 1.6.14                                ...           3 years ago
  • 1.6.13                                ...           3 years ago
  • 1.6.12                                ...           3 years ago
  • 1.6.11                                ...           3 years ago
  • 1.6.10                                ...           3 years ago
  • 1.6.9                                ...           3 years ago
  • 1.6.8                                ...           3 years ago
  • 1.6.7                                ...           3 years ago
  • 1.6.6                                ...           3 years ago
  • 1.6.5                                ...           3 years ago
  • 1.6.4                                ...           3 years ago
  • 1.6.3                                ...           3 years ago
  • 1.6.2                                ...           3 years ago
  • 1.6.1                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.5.1                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.8                                ...           3 years ago
  • 1.4.7                                ...           3 years ago
  • 1.4.6                                ...           3 years ago
  • 1.4.5                                ...           3 years ago
  • 1.4.4                                ...           3 years ago
  • 1.4.3                                ...           3 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.9                                ...           3 years ago
  • 1.2.8                                ...           3 years ago
  • 1.2.7                                ...           3 years ago
  • 1.2.6                                ...           3 years ago
  • 1.2.5                                ...           3 years ago
  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.33                                ...           3 years ago
  • 0.1.32                                ...           3 years ago
  • 0.1.31                                ...           3 years ago
  • 0.1.30                                ...           3 years ago
  • 0.1.29                                ...           3 years ago
  • 0.1.28                                ...           3 years ago
  • 0.1.27                                ...           3 years ago
  • 0.1.26                                ...           3 years ago
  • 0.1.25                                ...           3 years ago
  • 0.1.24                                ...           3 years ago
  • 0.1.23                                ...           3 years ago
  • 0.1.21                                ...           3 years ago
  • 0.1.20                                ...           3 years ago
  • 0.1.19                                ...           3 years ago
  • 0.1.18                                ...           3 years ago
  • 0.1.17                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.1.0-alpha.eb73f965                                ...           3 years ago
  • 1.0.2 [deprecated]           ...           8 years ago
  • 1.0.1 [deprecated]           ...           9 years ago
Downloads
Today 0
This Week 3
This Month 372
Last Day 3
Last Week 363
Last Month 741
Dev Dependencies (13)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |