Skip to content

yunke-yunfly/yunfly-plugin-prometheus

Repository files navigation

@yunflyjs/yunfly-plugin-prometheus

yunfly prometheus plugin.

Usage

  1. install
yarn add @yunflyjs/yunfly-plugin-prometheus
  1. declare plugins in config/config.plugin.ts
/**
 * yunfly plugin
 */
const plugins: {[key:string]: string}[] = [
  {
    name: 'prometheus',
    package: '@yunflyjs/yunfly-plugin-prometheus'
  }
];
// 
export default plugins;
  1. enable plugins in config/config.default.ts
config.prometheus = {
  enable: true,
}
  1. 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