yunfly prometheus plugin.
- install
yarn add @yunflyjs/yunfly-plugin-prometheus
- declare plugins in config/config.plugin.ts
/**
* yunfly plugin
*/
const plugins: {[key:string]: string}[] = [
{
name: 'prometheus',
package: '@yunflyjs/yunfly-plugin-prometheus'
}
];
//
export default plugins;
- enable plugins in config/config.default.ts
config.prometheus = {
enable: true,
}
open http://127.0.0.1:9000/metrics
more information:https://yunke-yunfly.github.io/doc.github.io/document/technology/prometheus