2016-04-19 10:14:52 +02:00
2016-04-19 10:14:52 +02:00
2016-04-18 02:50:26 +02:00
2016-04-18 02:50:26 +02:00
2016-04-18 02:50:26 +02:00
2016-04-19 10:14:52 +02:00
2016-04-19 10:14:52 +02:00
2016-04-18 17:54:15 +02:00

build status

express prometheus bundle

express middleware with popular prometheus metrics in one bundle.

Internally it uses prom-client. See: https://github.com/siimon/prom-client

Included metrics:

  • up: normally is just 1
  • nodejs_memory_heap_total_bytes and nodejs_memory_heap_used_bytes
  • http_request_total: count of http requests labeled with status_code

Install

npm install express-prom-bundle

Usage

const
    promBundle = require("express-prom-bundle"),
    middleware = promBundle({/* options */ });

Options

  • prefix: prefix added to every metric name

Example

"use strict";

const express = require("express"),
    app = express(),
    promBundle = require("express-prom-bundle");

app.use(promBundle({
    prefix: "demo_app:something"
}));

app.get("/hello", (req, res) => res.send("ok"));

app.listen(3000);
Description
No description provided
Readme MIT 2.8 MiB
Languages
JavaScript 91.8%
TypeScript 7.1%
Makefile 1.1%