@egomobile/http-prometheus
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

npm PRs Welcome

@egomobile/http-prometheus

Sets up prom-clients for @egomobile/http-server instances.

Table of contents

Install []

Execute the following command from your project folder, where your package.json file is stored:

npm install --save @egomobile/http-prometheus

Usage []

Quick example []

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();

Credits []

The module makes use of:

Documentation []

The API documentation can be found here.

/@egomobile/http-prometheus/

    Package Sidebar

    Install

    npm i @egomobile/http-prometheus

    Weekly Downloads

    3

    Version

    0.1.0

    License

    LGPL-3.0

    Unpacked Size

    19.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • ekmobile
    • egodux
    • mkloubert
    • ekegodigital