StatsD
What is Port 8125?
Port 8125 is the default port for StatsD, a network daemon for collecting and aggregating application metrics. Originally written by Etsy, StatsD receives metric data over UDP (counters, timers, gauges, sets) from applications and periodically flushes aggregated data to backend systems like Graphite, InfluxDB, or Datadog. StatsD's UDP-based collection means applications can send metrics with minimal performance impact — if the StatsD server is unavailable, the UDP packets are simply dropped without affecting application performance. StatsD has become a standard component in application monitoring stacks and is supported by most observability platforms.
Common Uses
- Application metric collection and aggregation
- Custom business metric tracking
- Performance monitoring instrumentation
- Infrastructure metric gathering
Technical Details
Copy-paste commands to check port 8125 (StatsD) from your terminal
Test connectivity
nmap -p 8125 -sU -sV example.com
(echo > /dev/tcp/example.com/8125) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 8125/udp
sudo iptables -A INPUT -p udp --dport 8125 -j ACCEPT
sudo firewall-cmd --permanent --add-port=8125/udp && sudo firewall-cmd --reload
Security Considerations
StatsD accepts any UDP data without authentication. Restrict access via firewall rules. In Kubernetes, use network policies. The lack of authentication means any application on the network can send metrics, potentially polluting monitoring data. Consider using authenticated metrics collection for sensitive environments.
Popular Ports Reference
The most commonly used and referenced network ports