StatsD: Network daemon for stats aggregation
UDP/TCP metrics collector with pluggable backend support.
Learn more about StatsD
StatsD is a network daemon written in Node.js that receives metrics from applications and aggregates them before sending to backend services. It listens for incoming statistics on UDP and TCP ports, organizing metrics into user-defined buckets with configurable flush intervals. The daemon supports multiple metric types including counters, timers, and gauges, with a simple line protocol for metric submission. It is commonly deployed as a metrics collection layer between applications and time-series databases or monitoring systems.
Pluggable backend architecture
Supports multiple backend services through a plugin interface, allowing metrics to be sent to Graphite, InfluxDB, or other systems without modifying core code.
UDP and TCP support
Accepts metrics over both UDP for low-overhead fire-and-forget submission and TCP for guaranteed delivery, accommodating different application requirements.
Simple line protocol
Uses a minimal text-based format (metricname:value|type) that requires no client libraries, allowing metrics to be sent from any language or tool via basic network calls.
const StatsD = require('node-statsd');
const client = new StatsD({
host: 'localhost',
port: 8125
});
// Increment a counter for user signups
client.increment('user.signup');
client.increment('api.requests', 1);
client.decrement('active.connections');Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
MailHog
Captures development SMTP traffic with web and API interfaces.
FlameGraph
Converts profiling data into interactive SVG flame graphs for performance analysis.
ExcelJS
Parse, modify, and generate XLSX files in Node.js.
Cursor
Local code editor with integrated LLM assistance.
CXX
Safe FFI library for calling C++ from Rust and vice versa with zero-overhead bindings via code generation.