{"repo":"willsoto/nestjs-prometheus","free":true,"listed":false,"github":"https://github.com/willsoto/nestjs-prometheus","clone":"git clone https://github.com/willsoto/nestjs-prometheus.git","description":"NestJS module for Prometheus","language":"TypeScript","stars":681,"topics":["nestjs","prometheus","metrics","metrics-gathering","typescript"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"NestJS Prometheus - Installation - Usage Changing the metrics http endpoint Disabling default metrics collection Configuring the default metrics - Injecting individual metrics - Setting default labels - Prefixing custom metrics Option 1 (recommended) Option 2 (not recommended) - Available metrics + Counter + Gauge + Histogram + Summary - Injecting dependencies into collect - Providing a custom controller - Pushgateway Installation Usage By default, this will register a /metrics endpoint that will return the default metrics. Changing the metrics http endpoint Disabling default metrics collection Configuring the default metrics Injecting individual metrics Setting default labels See the docs for more information. Prefixing custom metrics You can add a custom prefix to all custom metrics by providing the customMetricPrefix option to the module configuration. Some caveats: In order to have the custom metrics registered in different modules from where the PrometheusModule was registered, you must do one of a few things: Option 1 (recommended) 1. Add the PrometheusModule to the exports of the registering Module . It may be useful to create a CommonModule that registers and exports the PrometheusModule . 2. Import that module into whatever module you are creating the custom metrics. Option 2 (not recommended) 1. Mark the PrometheusModule as global Available metrics Counter Gauge Histogram Summary Injecting dependencies into collect All metric providers support an optional inject arr","default_branch":null,"files":null,"tree":[],"storefront":"/r/willsoto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/willsoto/nestjs-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."}