Skip to content

Instantly share code, notes, and snippets.

@mleinart
Created January 9, 2012 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mleinart/1585128 to your computer and use it in GitHub Desktop.
Save mleinart/1585128 to your computer and use it in GitHub Desktop.
Rewrite statsd metrics to be in a flat heirarchy
[pre]
# I dont like statsd's "buckets"
# separate statsd's wonky and confusing summary counts
^(stats[.])(?!timers[.])(.+?)$ = stats.statsd.\2
# Put all metrics under the 'stats' prefix
^(stats[.])(timers[.])(.+?)$ = \1\3
^(stats_counts[.])(.+?)$ = stats.\2
# statsd's internal metrics
^(statsd)(.+?)$ = stats.\1\2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment