{"repo":"Julien-R44/adonisjs-prometheus","free":true,"listed":false,"github":"https://github.com/Julien-R44/adonisjs-prometheus","clone":"git clone https://github.com/Julien-R44/adonisjs-prometheus.git","description":"📊 Prometheus Provider for AdonisJS with some builtins metrics for monitoring your application.","language":"TypeScript","stars":100,"topics":["adonisjs","prometheus","prometheus-exporter","adonisjs5"],"license":"MIT","category":"analytics","readme_excerpt":"adonisjs-prometheus 📊 Prometheus package for AdonisJS [!NOTE] This is the version for AdonisJS 7 . For AdonisJS 6, see the 1.x branch and use @julr/adonisjs-prometheus@^1 . Installation Usage After installing the package, a configuration file is added to config/prometheus.ts in your application. The available options are: - endpoint : The URL of the endpoint where metrics will be exposed. Defaults to /metrics . - metricsPrefix : A prefix that will be added to all metric names. Defaults to the app name. - ipsWhitelist : A list of IP addresses or CIDR ranges allowed to access the metrics endpoint. Supports both exact IPs ( '10.0.0.5' ) and CIDR notation ( '192.168.1.0/24' ). If empty, everyone can access it. Defaults to an empty array. - collectors : The list of collectors that will be registered and expose new metrics. You can remove collectors you don't want to use. - enableExemplars : Enable OpenMetrics exemplars support. When enabled, metrics will include trace context ( traceId and spanId ) from OTEL. Defaults to false . Collectors Each collector accepts options to customize the metrics it exposes. Be sure to explore these options using your editor's auto-completion to learn more. HTTP Collector Adds metrics to monitor HTTP requests: Exposed Metrics - http requests total : Counter for the total number of HTTP requests. - http request duration seconds : Histogram of HTTP request durations. Options - shouldGroupStatusCode : Groups HTTP status codes into 1xx, 2xx, 3xx, 4xx, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Julien-R44","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Julien-R44/adonisjs-prometheus/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."}