{"library":"prometheus-api-metrics","type":"library","category":null,"description":"This library provides comprehensive API and process monitoring for Node.js microservices, integrating with Prometheus through `prom-client`. It automatically collects metrics such as response time, request/response size, and server connection counts for each API call, in addition to standard process metrics recommended by Prometheus. It supports both Express and Koa frameworks and allows for custom metrics and exclusion of specific routes. The current stable version is 4.0.0. Releases are somewhat irregular, with significant updates typically every 1-2 years for major/minor versions. Key differentiators include its ease of integration as middleware, support for custom metrics, and the ability to collect HTTP request durations from common HTTP clients. Users must install `prom-client` as a peer dependency.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","monitoring","nodejs","node","prometheus","api","express","koa","metrics","typescript"],"install":[{"cmd":"npm install prometheus-api-metrics","imports":["import apiMetrics from 'prometheus-api-metrics';","const apiMetrics = require('prometheus-api-metrics');","import type { Options } from 'prometheus-api-metrics';"]},{"cmd":"yarn add prometheus-api-metrics","imports":[]},{"cmd":"pnpm add prometheus-api-metrics","imports":[]}],"homepage":null,"github":"https://github.com/PayU/prometheus-api-metrics","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/prometheus-api-metrics","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/prometheus-api-metrics/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}