{"repo":"last9/openapm-nodejs","free":true,"listed":false,"github":"https://github.com/last9/openapm-nodejs","clone":"git clone https://github.com/last9/openapm-nodejs.git","description":"APM for NodeJS using Prometheus","language":"TypeScript","stars":66,"topics":["apm","metrics","monitoring","nodejs","openmetrics","application-monitoring","instrumentation","opensource"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"@last9/openapm An APM solution based on metrics and open-source tools such as Prometheus and Grafana for NodeJs-based applications. Table of Contents 1. Installation 2. Usage 3. Options 4. API Reference 5. Setup Locally 6. Grafana Dashboard View Installation Usage 1. Express 2. MySQL 3. NestJS 4. Next.js Express In the example below, the metrics will be served on localhost:9097/metrics . To change the port, you can update it through the options (See the options documentation). MySQL This currently supports instrumentation for all Node.js ORMs, which are mysql2 compatible. Ensure to add this line of code before you initialize db connection/pool/poolCluster . NestJS OpenAPM currently supports RED Metrics for NestJS v4 and above. Next.js OpenAPM supports RED metrics for both pages and app router in a Next.js application. Note: You can only use the library if Next.js runs in a Node.js environment. Since OpenAPM relies on prom-client for capturing metrics data, a serverless environment might not be able persist them. Options Usage 1. path : The path at which the metrics will be served. For eg. /metrics 2. metricsServerPort : (Optional) The port at which the metricsServer will run. 3. environment : (Optional) The application environment. Defaults to production . 4. defaultLabels : (Optional) Any default labels to be included. 5. requestsCounterConfig : (Optional) Requests counter configuration, same as Counter in prom-client . Defaults to 6. requestDurationHistogramConfig : (Option","default_branch":null,"files":null,"tree":[],"storefront":"/r/last9","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/last9/openapm-nodejs/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."}