Skip to content

Instantly share code, notes, and snippets.

@bodsch
Forked from kirbysayshi/mass-aggregation-change.sh
Created January 26, 2018 15:07
Show Gist options
  • Save bodsch/2888b28f93885c5b4bf81aa458f86067 to your computer and use it in GitHub Desktop.
Save bodsch/2888b28f93885c5b4bf81aa458f86067 to your computer and use it in GitHub Desktop.
quick examples of how to change many many wsp (graphite/whisper) files settings
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