2.0.2 • Published 2 years ago

@apio/express-prometheus v2.0.2

Weekly downloads
109
License
MIT
Repository
github
Last release
2 years ago

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)