Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
/ statsdump Public archive
forked from mcfunley/statsdump

Simple script to analyze statsd UDP traffic.

License

Notifications You must be signed in to change notification settings

stripe-archive/statsdump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a simple script that can read tcpdump full of statsd traffic and then display summary information. It will give you:

  • The most prolific hosts.
  • The hottest keys.
  • The hottest key prefixes.

It displays each of these in a table with absolute counts, a PDF and a CDF (where applicable).

You could use this if you are, for example, trying to figure out where to add sampling.

Instructions

Install requirements (you probably want to be using some form of virtualenv):

pip install -r requirements.txt

Take a tcpdump on the statsd server:

tcpdump -c3000000 -A -wstats.pcap -t dst port 8125 

Then pass that data to this script on stdin:

./statsdump.py < stats.pcap

Voilà.

About

Simple script to analyze statsd UDP traffic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%