@chatlayer/metrics
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@chatlayer/metrics

Installation

Add "@chatlayer/metrics" to you package.json dependencies

Usage

First you need to cretate a collector

import { createCollector } from '@chatlayer/metrics';

const collector = createCollector({
  host: process.env.STATSD_HOST,
  port: parseInt(process.env.STATSD_PORT),
  service: 'my_service_name',
  environment: 'us-east4-gcp',
  version: '12234345',
});

then you can report metrics

collector.increment("my_counter")

The collector will be closed automatically when the node process exits.

Readme

Keywords

none

Package Sidebar

Install

npm i @chatlayer/metrics

Weekly Downloads

0

Version

1.0.0

License

UNLICENSED

Unpacked Size

17.5 kB

Total Files

24

Last publish

Collaborators

  • chatlayer-user
  • chatlayer-carnewal
  • mahenvermeulen
  • miguel.carvajal