Socket
Socket
Sign inDemoInstall

@apio/express-prometheus

Package Overview
Dependencies
15
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apio/express-prometheus

Express middleware to provide basic metrics to Prometheus.


Version published
Weekly downloads
102
decreased by-25%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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)

Keywords

FAQs

Last updated on 13 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc