44<div align =" center " >
55<h1 style =" font-size : 2em ;" >NestJS Metrics Reporter</h1 >
66
7- [ ![ npm version] ( https://badge.fury.io/js/nestjs-metrics-client .svg )] ( https://badge.fury.io/js/nestjs-metrics-client )
8- <a href =" https://www.npmjs.com/package/nestjs-metrics-client " target =" _blank " ><img src =" https://img.shields.io/npm/dm/nestjs-metrics-client " alt =" NPM Downloads " /></a >
7+ [ ![ npm version] ( https://badge.fury.io/js/nestjs-metrics-reporter .svg )] ( https://badge.fury.io/js/nestjs-metrics-reporter )
8+ <a href =" https://www.npmjs.com/package/nestjs-metrics-reporter " target =" _blank " ><img src =" https://img.shields.io/npm/dm/nestjs-metrics-reporter " alt =" NPM Downloads " /></a >
99<a href =" https://medium.com/elementor-engineers/avoid-prometheus-mess-in-nestjs-1ea368e3e21e " target =" _blank " ><img src =" https://img.shields.io/badge/Medium-Read%20Article-black?logo=medium " alt =" Medium Article " /></a >
1010[ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
1111
@@ -23,20 +23,20 @@ Effortlessly report metrics from anywhere in your codebase without complex setup
2323## Installation
2424
2525``` bash
26- npm install nestjs-metrics-client
26+ npm install nestjs-metrics-reporter
2727```
2828
2929---
3030
3131## Overview
3232
33- ` nestjs-metrics-client ` is a lightweight, ** zero-setup** alternative
33+ ` nestjs-metrics-reporter ` is a lightweight, ** zero-setup** alternative
3434to [ @willsoto/nestjs-prometheus ] ( https://github.com/willsoto/nestjs-prometheus ) , eliminating the need for dependency
3535injection or extensive configuration.
3636Instantly report metrics from anywhere in your application using a global static reporter.
3737
3838``` typescript
39- import { ReporterService } from ' nestjs-metrics-client ' ;
39+ import { ReporterService } from ' nestjs-metrics-reporter ' ;
4040
4141ReporterService .counter ( ' api_requests_total' , { endpoint: ' /users' } );
4242```
@@ -59,10 +59,10 @@ graph TD
5959```
6060---
6161
62- ## Why Choose ` nestjs-metrics-client ` ?
62+ ## Why Choose ` nestjs-metrics-reporter ` ?
6363
6464🚀 ** No Dependency Injection**
65- Unlike [ @willsoto/nestjs-prometheus ] ( https://github.com/willsoto/nestjs-prometheus ) , ` nestjs-metrics-client ` removes the
65+ Unlike [ @willsoto/nestjs-prometheus ] ( https://github.com/willsoto/nestjs-prometheus ) , ` nestjs-metrics-reporter ` removes the
6666need for cumbersome dependency injection, making your code cleaner and more portable.
6767
6868🌟 ** Effortless Integration**
@@ -82,7 +82,7 @@ Minimal setup required! Just import the `ReporterModule` in your `AppModule`.
8282
8383``` typescript
8484import { Module } from " @nestjs/common" ;
85- import { ReporterModule } from ' nestjs-metrics-client ' ;
85+ import { ReporterModule } from ' nestjs-metrics-reporter ' ;
8686
8787@Module ( {
8888 imports: [
@@ -122,7 +122,7 @@ Once initialized, you can start reporting metrics instantly from anywhere in you
122122
123123``` typescript
124124import { Injectable } from ' @nestjs/common' ;
125- import { ReporterService } from ' nestjs-metrics-client ' ;
125+ import { ReporterService } from ' nestjs-metrics-reporter ' ;
126126
127127@Injectable ()
128128export class UserService {
0 commit comments