koa-prom

0.0.1 • Public • Published

koa-consul

This middleware will set a /metrics route as default for getting the prometheus monitor data.

Usage

import Koa from 'koa';
import KoaConsul from 'koa-prom';
 
let app = new Koa();
 
app.use(KoaProm());

API

KoaConsul(options)

  • options.url default is /metrics.
  • options.register: the prom-client register, if you don't give, it will use a default register.

Package Sidebar

Install

npm i koa-prom

Weekly Downloads

14

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zfeng