{"repo":"keymetrics/pm2-io-apm","free":true,"listed":false,"github":"https://github.com/keymetrics/pm2-io-apm","clone":"git clone https://github.com/keymetrics/pm2-io-apm.git","description":"PM2.io APM for Node.JS","language":"TypeScript","stars":156,"topics":["pm2","metrics","monitoring","profiling","tracing","logs","nodejs","apm"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"The @pm2/io module comes along with PM2. It is the PM2 library responsible for gathering the metrics, reporting exceptions, exposing remote actions and every interaction with your application. You can also use it as a standalone agent, if you want to connect your nodejs process to PM2 Enterprise but without having to launch your application with PM2. Table of Contents - Installation - Expose Custom Metrics - Expose Remote Actions - Report Custom Errors - Distributed Tracing - Configuration - Migration Guide - Development - Notes Installation With npm: With yarn: V8 Runtime Metrics To retrieve by default V8 Runtime metrics like: - V8 Garbage Collector metrics - CPU Context Switch - Page Fault Install: And restart the application. Custom Metrics @pm2/io allows you to gather metrics from your code to be reported in the PM2 Plus/Enterprise dashboard. Create a custom metrics You can create a new custom metrics with the method metric() of @pm2/io . This arguments are available: - name : The metric name (required; string) - id : The type of metric (default 'metric', string) - unit : unit of the measure (default ''; string) - historic : keep the history in PM2 Plus (default: true; boolean) There are 4 different types of metrics: - gauge : To expose a variable's value - counter : A discrete counter to be triggered manually to count a number of occurrence - meter : To measure a frequency, a number of occurrences of a repeating event per unit of time - histogram : To measure a statistic","default_branch":null,"files":null,"tree":[],"storefront":"/r/keymetrics","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keymetrics/pm2-io-apm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}