express middleware with standard prometheus metrics in one bundle
/:type) const route = req.route; if (route && route.path) { return route.path; } // default return promBundle.normalizePath(req, opts); }; ``` ## Usage with Koa ### Koa v1 ```javascript const promBundle = require("@breizhhardware/express-prom-bundle"); const koa = require("koa"); const app = koa(); const metricsMiddleware = promBundle({includeMethod: true}); app.use(metricsMiddleware); app.use(/* your middleware */); app.listen(3000); ``` ### Koa v2 ```javascript const promBundle = require("@breizhhardware/express-prom-bundle"); const koa = require("koa"); const app = new koa(); const metricsMiddleware = promBundle({includeMethod: true}); app.use(metricsMiddleware); app.use(/* your middleware */); app.listen(3000); ``` ## Multiple instances If you need to add the same metrics multiple times (e.g. for different apps or services), you have to use different registries: ```javascript const promBundle = require("@breizhhardware/express-prom-bundle"); const Registry = require("prom-client").Registry; const reg1 = new Registry(); const reg2 = new Registry
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.