Forked from kirbysayshi/mass-aggregation-change.sh
Created
September 12, 2016 16:51
-
-
Save yesoreyeram/2ed8a397180ee996eb102b9a2e0fc6a9 to your computer and use it in GitHub Desktop.
quick examples of how to change many many wsp (graphite/whisper) files settings
This file contains hidden or 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
for f in $(find $1 -iname "*.wsp"); do | |
if [ -a $f ]; | |
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max; | |
fi; | |
done |
This file contains hidden or 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
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
find ./ -type f -name '*.wsp' -exec whisper-resize.py --nobackup {} 1s:2d 10s:31d 60s:365d ;
https://gist.github.com/kirbysayshi/1389254#gistcomment-877877