Sets up prom-clients for @egomobile/http-server instances.
Execute the following command from your project folder, where your package.json
file is stored:
npm install --save @egomobile/http-prometheus
import createServer from "@egomobile/http-server";
import { setupPromClient } from "@egomobile/http-prometheus";
const app = createServer();
// this registers a new GET endpoint
// for path `/prometheus`, which uses
// a new `Registry` instance of `prom-client`
setupPromClient(server, "/prometheus");
// ...
await app.listen();
The module makes use of:
The API documentation can be found here.
Generated using TypeDoc