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

GreetzNL/node-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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 @greetznl/node-metrics -P

Usage

// import module
const nodeMetrics = require('@greetznl/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.

About

Client for gathering metricizes from nodejs application and exposing them on endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors