Created
September 26, 2013 11:18
-
-
Save mrmanc/6712805 to your computer and use it in GitHub Desktop.
Measure Graphite metrics received by all Carbon cache instances over time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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