@yunflyjs/yunfly-plugin-prometheus
v0.0.1
Published
yunfly prometheus plugin.
Downloads
2
Maintainers
Readme
@yunflyjs/yunfly-plugin-prometheus
yunfly prometheus plugin.
Usage
- 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'
open http://127.0.0.1:9000/metrics
more information:https://yunke-yunfly.github.io/doc.github.io/document/technology/prometheus