Self-host statsd
v0.10.2Metrics aggregation daemon for counters and timers
- Stars
- 18 077
- Port
- 8125 (Default UDP port for incoming metrics)
statsd/statsdWhat is statsd?
StatsD is a lightweight network daemon written in JavaScript that collects application metrics such as counters, timing values, and gauges over UDP or TCP, then flushes aggregated data to one or more backend services every 10 seconds by default. It was originally created at Etsy and inspired by a similar project at Flickr. Operators run it with Node.js directly or via an official Docker image, configure it through a JavaScript file, and point it at backends like Graphite, Console, or a Repeater. Additional third-party backend plugins extend support to databases, queues, and hosted monitoring services. The project remains MIT-licensed and actively maintained on GitHub.
statsd alternatives
collectdSelf-hosted C-based daemon collecting OS/application performance metrics. Supports RRD storage, Graphite, Prometheus, Kafka integration.Comparecollectd with statsd
vnstatSelf-hosted, open-source network traffic monitor for Linux/BSD using kernel counters — no sniffing, minimal resources, optional web UI with charts and Prometheus metrics.Comparevnstat with statsd
statainerSelf-hosted open-source web UI for Docker monitoring with live metrics, Compose grouping, updates, and multi-provider notifications.Comparestatainer with statsd
UptimeKitUptimeKit is a self-hosted, open-source monitoring solution that checks HTTP/TCP services and publishes status pages with incident management and analytics.CompareUptimeKit with statsd
Node ExporterOpen-source metrics exporter for Unix systems hardware and OS data. Collects CPU, memory, disk, network stats via pluggable collectors.CompareNode Exporter with statsd
TelegrafOpen-source, self-hosted telemetry agent that collects, processes and writes metrics and logs via 300+ plugins, shipped as a single static binary configured in TOML.CompareTelegraf with statsd
netdataNetdata is an open-source, self-hosted infrastructure monitoring platform with per-second metrics, automated dashboards, ML anomaly detection, and zero-config deployment.Comparenetdata with statsd
Statping-ngA self-hosted, open-source status page and uptime monitor in Go. It checks HTTP, socket and gRPC endpoints, alerts via Slack, Discord or email, and supports oAuth logins.CompareStatping-ng with statsd
Should you self-host statsd?
statsd scores 67/100 on selfhost.directory (how scoring works) and ranks #1 of 2 in Metrics. It has 18 077 GitHub stars, +3 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in JavaScript.
Its closest alternative on selfhost.directory is munin (60/100, 2 151 stars). statsd scores higher overall. See statsd vs munin side by side.
Features
- Admin TCP interface
- Counter metrics
- Graphite backend
- Histograms
- Pluggable Backends
- Sampling
- TCP metric ingestion
- Timing metrics with percentiles
- UDP metric ingestion
statsd README
A network daemon that runs on the Node.js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends aggregates to one or more pluggable backend services (e.g., Graphite).
-
buckets
Each stat is in its own "bucket". They are not predefined anywhere. Buckets can be named anything that will translate to Graphite (periods make folders, etc)
-
values
Each stat will have a value. How it is interpreted depends on modifiers. In general values should be integers.
-
flush
After the flush interval timeout (defined by
config.flushInterval, default 10 seconds), stats are aggregated and sent to an upstream backend service.
More in Metrics
TelegrafOpen-source, self-hosted telemetry agent that collects, processes and writes metrics and logs via 300+ plugins, shipped as a single static binary configured in TOML.
UniFi-PollerThis open-source, self-hosted poller gathers UniFi controller data every 30 seconds and feeds InfluxDB, Prometheus or Loki, with thirteen ready-made Grafana dashboards.
vectorA self-hosted, open-source observability data pipeline in Rust that collects, transforms, and routes logs and metrics to whichever backend you choose.
victoriametricsOpen-source, self-hosted time series database and monitoring backend that replaces Prometheus or Graphite as Grafana's metrics store, with PromQL and MetricsQL querying.
AlloySelf-hosted OpenTelemetry Collector with Prometheus pipelines. Programmable pipelines, clustering, Loki/Tempo/Mimir/Pyroscope integrations.
BeszelOpen-source, self-hosted server monitoring: a hub plus per-host agents tracking CPU, memory, disks, containers, GPU and temperatures, with alerts and historical data.
cactiOpen-source, self-hosted network monitoring and graphing platform on RRDtool: SNMP device discovery, templates, remote pollers, RBAC and LDAP login.
cadvisorSelf-hosted, open-source cAdvisor daemon tracks CPU, memory, network and disk usage of running containers, exposing a web UI, REST API and Prometheus metrics.
DiamondSelf-hosted Python daemon gathering CPU, memory, disk I/O metrics and shipping to Graphite, StatsD, InfluxDB, and 15+ backends via 100+ collectors.
DockProcSelf-hosted, open-source Docker monitoring tool that reads wrote_bytes and read_bytes from /proc to report true container block I/O and export Prometheus metrics.
gigapipeSelf-hosted open-source observability backend merging four telemetry types into ClickHouse with Loki, Prometheus, Tempo and Pyroscope protocol support.
GrafanaMimirOpen-source, self-hosted long-term TSDB for Prometheus: multi-tenant, replicated metrics storage that scales past a billion active series.
0 comments