A Collector that collects data using 'appmetrics' and exposes it to a path "/metrics".
The appmetrics-prometheus-client Collector for Node Application Metrics can be installed via npm:
$ npm install appmetrics-prometheus-clientThe 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();The Collector sends the following data values to Path /metrics from Node Application Metrics:
Gauges
- cpu.processthe CPU usage of the application as a percentage of total machine CPU
- cpu.systemthe CPU usage of the system as a percentage of total machine CPU
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.
- eventloop.latency.minthe shortest sampled latency for processing an event
- eventloop.latency.maxthe longest sampled latency for processing an event
- eventloop.latency.avgthe mean sampled latency for processing an event
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.
Timers
- httpthe time taken for the HTTP request to be responded to in ms.
The Node Application Metrics to StatsD Collector is licensed using an Apache v2.0 License.
0.0.3