Prometheus-Express
prometheus-express
is a simple to use, extensible express plugin to serve
request statistics through prometheus.
Getting Started
Installation
npm install --save prometheus-express
Usage
Using with JavaScript:
const express = ;const promExpress = ;const app = ;app; // ... your code
Using with TypeScrypt:
;;;app.usepromExpress.instrumentExpress; // ... your code
Expose metrics on different port, different express app.
const express = ;const promExpress = ;const mainApp = ;mainApp;mainApp; const metricsApp = ;metricsApp;metricsApp;