Skip to content

cool-firer/egg-swagger-stats

Repository files navigation

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

About

swagger-stats plugin for egg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published