{"repo":"immobiliare/dats","free":true,"listed":false,"github":"https://github.com/immobiliare/dats","clone":"git clone https://github.com/immobiliare/dats.git","description":"📈 Minimalistic zero-dependencies statsd client for Node.js","language":"TypeScript","stars":104,"topics":["nodejs","statsd","client","udp","tcp","metrics","apn","typescript","javascript","npm"],"license":"MIT","category":"analytics","readme_excerpt":"dats Minimalistic zero-dependencies UDP/TCP statsd client for Node.js There are times when you have to gather metrics and you want something simple without writing too much boilerplate, dats to your aid! This client aims to have a simple statsd compliant API with some optional flavour for advanced usage, like: buffered metrics and either UDP/TCP transports! Supports Node.js =24.0.0 . Table of Content - Installation - Usage Generic Namespacing with Hostname/PID TCP Client - API Client + new Client(options) + [ Client.close([cb]) ](#clientclosecb) + Client.connect() + [ Client.counter(string[, value, sampling]) ](#clientcounterstring-value-sampling) + [ Client.timing(string, value[, sampling]) ](#clienttimingstring-value-sampling) + Client.gauge(string, value) + Client.set(string, value) - Dats Mock - CLI Interface CLI Usage datsrc Pre-compiled binary - Benchmarks - Powered Apps - Support & Contribute - License Installation The package is available at npm. You can install it with npm or your prefered pacakge manager Usage Generic Namespacing with Hostname/PID If the hostname contains any . , the client will replace them with . TCP Client API This module exports: - Client Client The statsd client new Client(options) - options : configuration object. - host : statsd host ( udp://{ip}:{port} or tcp://{ip}:{port} ), you can use also ipv6. If you want to force udp6 usage use: udp6://{host}:{port} , when using TCP, you have to call the Client.connect method. - namespace : Optional. P","default_branch":null,"files":null,"tree":[],"storefront":"/r/immobiliare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/immobiliare/dats/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."}