Skip to content

Instantly share code, notes, and snippets.

@mrmanc
Created September 26, 2013 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrmanc/6712805 to your computer and use it in GitHub Desktop.
Save mrmanc/6712805 to your computer and use it in GitHub Desktop.
Measure Graphite metrics received by all Carbon cache instances over time
ls /usr/local/graphite/storage/whisper/carbon/agents/*/metricsReceived.wsp | xargs -I {} whisper-dump.py {} | sed -e "s/,//" | awk '$1 ~ /^[0-9]/ && $3 > 0 {day=strftime("%Y-%m-%d", $2); if ($3 > sizes[day]) {sizes[day]=int($3)}} END {for(day in sizes) {print day " " sizes[day]}}' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment