0.0.3 • Published 8 years ago
appmetrics-prometheus-client v0.0.3
Prometheus Collector for Node Application Metrics
A Collector that collects data using 'appmetrics' and exposes it to a path "/metrics".
Getting Started
Installation
The appmetrics-prometheus-client Collector for Node Application Metrics can be installed via npm:
$ npm install appmetrics-prometheus-clientConfiguring the appmetrics-prometheus-client for Node Application Metrics
The Collector can be used in your application by requiring it as the first line of your application:
const appmetrics_prometheus = require('appmetrics-prometheus-client').Prometheus();Data Provided
The Collector sends the following data values to Path /metrics from Node Application Metrics:
CPU
Gauges
cpu.processthe CPU usage of the application as a percentage of total machine CPUcpu.systemthe CPU usage of the system as a percentage of total machine CPU
System Memory
Gauges
memory.process.privatethe amount of memory used by the Node.js application that cannot be shared with other processes, in bytes.memory.process.physicalthe amount of RAM used by the Node.js application in bytes.memory.process.virtualthe memory address space used by Node.js application in bytes.memory.system.usedthe total amount of RAM in use on the system in bytes.memory.system.totalthe total amount of RAM available on the system in bytes.
####Event Loop
eventloop.latency.minthe shortest sampled latency for processing an eventeventloop.latency.maxthe longest sampled latency for processing an eventeventloop.latency.avgthe mean sampled latency for processing an event
####Garbage Collection
Gauges
gc.sizethe size of the JavaScript heap in bytes.gc.usedthe amount of memory used on the JavaScript heap in bytes.
Timers
gc.durationthe duration of the GC cycle in milliseconds.
####HTTP Requests
Timers
httpthe time taken for the HTTP request to be responded to in ms.
License
The Node Application Metrics to StatsD Collector is licensed using an Apache v2.0 License.
Version
0.0.3