egg-swagger-stats
v1.0.4
Published
swagger-stats plugin for egg, support cluster.
Downloads
4
Readme
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.