Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 398 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 398 Bytes

koa-prom

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

Usage

import Koa from 'koa';
import KoaProm from 'koa-prom';

let app = new Koa();

app.use(KoaProm());

API

KoaProm(options)

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