Skip to content

Instantly share code, notes, and snippets.

@ingardm
Forked from kirbysayshi/mass-aggregation-change.sh
Created December 11, 2013 11:21
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 ingardm/7908733 to your computer and use it in GitHub Desktop.
Save ingardm/7908733 to your computer and use it in GitHub Desktop.
for f in $(find $1 -iname "*.wsp"); do
if [ -a $f ];
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max;
fi;
done
for f in $(find $1 -iname "*.wsp"); do
if [ -a $f ];
then /opt/graphite/bin/whisper-resize.py $f 10s:12h 60s:7d 10m:3y;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment