1.0.3 • Published 5 years ago

@greetz/node-metrics v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

node-metrics

Application for gathering metrics from Node.js applications and exposing them on /internal/metrics endpoint in “prometheus” format with simple HTTP authentication.

It uses default metricizes of prom-client library

Install

npm i @greetz/node-metrics -P

Usage

// import module
const nodeMetrics = require('@greetz/node-metrics');

// provide the http server on which will be risen the "/internal/metrics" endpoint
nodeMetrics(server)

INTERNAL_USER and INTERNAL_PASSWORD environment variables are required to be set for authentication. They are used for verifying username and password which should provided with request to /internal/metrics.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago