Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 466 Bytes

File metadata and controls

25 lines (16 loc) · 466 Bytes

express-prometheus

Based on @trussle/tricorder

Installation

npm i @apio/express-prometheus

Usage

The module attaches a /metrics route to your app, this endpoint will output prometheus metrics

const expressPrometheus = require('@apio/express-prometheus')
const express = require('express')

// Setup your express app
const app = express()

// Instrument the app
expressPrometheus.instrument(app)