summaryrefslogtreecommitdiffstats
path: root/sites/elchstats.nsupdate.info/graphite.journal.txt
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-04-29 16:31:51 +0200
committermakefu <root@pigstarter.de>2014-04-29 16:31:51 +0200
commitd14d0ae3e34a49b742c5d5e9b879e92c704edaa1 (patch)
tree507decaa8b23914ac1aa5bf848c4b063a9ef93c2 /sites/elchstats.nsupdate.info/graphite.journal.txt
parentda3ff667030c5316712bf2280f733a2a85fc7ba3 (diff)
parent95fbba75246cf1b5115bc5493d3119f9ea91221e (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'sites/elchstats.nsupdate.info/graphite.journal.txt')
-rw-r--r--sites/elchstats.nsupdate.info/graphite.journal.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/sites/elchstats.nsupdate.info/graphite.journal.txt b/sites/elchstats.nsupdate.info/graphite.journal.txt
index 83e36c93..d3a73433 100644
--- a/sites/elchstats.nsupdate.info/graphite.journal.txt
+++ b/sites/elchstats.nsupdate.info/graphite.journal.txt
@@ -1,21 +1,27 @@
#?/bin/sh
+set -euf
# from http://graphite.wikidot.com/installation
git clone https://github.com/graphite-project/graphite-web.git
git clone https://github.com/graphite-project/carbon.git
git clone https://github.com/graphite-project/whisper.git
-pacman -S python2 gcc pkg-config cairo
+pacman -S python2 gcc pkg-config cairo python2-pip
for i in whisper carbon graphite-web;do
cd $i
pip2 install -r requirements.txt||:
python2 setup.py install
+ cd -
done
cd /opt/graphite/conf
cp carbon.conf.example carbon.conf
+# edit carbon.conf, fix max writes per second, max adds per minute
cp storage-schemas.conf.example storage-schemas.conf
+# edit storage-schemas.conf, fix storage time
+
cd /opt/graphite/webapp/graphite
cp local_settings.py.example local_settings.py
+# change SECRET_KEY
PYTHONPATH=/opt/graphite/webapp django-admin.py syncdb --settings=graphite.settings
# push in the texts