egg-swagger-stats

1.0.4 • Public • Published

egg-swagger-stats

swagger-stats plugin for egg, support cluster.

Install

$ npm i egg-swagger-stats --save

Usage

// {app_root}/config/plugin.js
exports.eggSwaggerStats = {
  enable: true,
  package: 'egg-swagger-stats',
};

Configuration

// {app_root}/config/config.default.js
exports.eggSwaggerStats = {
};

see swaggerstats.io for more detail.

Example

open browser, navigate to the url below:
metrics: /host:port/swagger-stats/metrics
     ui: /host:port/swagger-stats/ui

recommand using prometheus to collect metrics.

License

MIT

Package Sidebar

Install

npm i egg-swagger-stats

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

5.29 MB

Total Files

68

Last publish

Collaborators

  • cool-firer