0.0.1 • Published 10 months ago

@yunflyjs/yunfly-plugin-prometheus v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

0.0.1

10 months ago