diff options
author | makefu <github@syntax-fehler.de> | 2014-04-01 22:35:37 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-04-01 22:35:37 +0200 |
commit | e33e18050f7c3fdc9093f3f2da8470fbf8017e57 (patch) | |
tree | bf2029824f786fde7f87cfff21132938b073763f /sites/elchstats.nsupdate.info/graphite.journal.txt | |
parent | 808611ce321d1aefe28c08a95fdd7ea7d92ec551 (diff) |
add graphite deployment
Diffstat (limited to 'sites/elchstats.nsupdate.info/graphite.journal.txt')
-rw-r--r-- | sites/elchstats.nsupdate.info/graphite.journal.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sites/elchstats.nsupdate.info/graphite.journal.txt b/sites/elchstats.nsupdate.info/graphite.journal.txt new file mode 100644 index 00000000..83e36c93 --- /dev/null +++ b/sites/elchstats.nsupdate.info/graphite.journal.txt @@ -0,0 +1,31 @@ +#?/bin/sh +# 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 +for i in whisper carbon graphite-web;do + cd $i + pip2 install -r requirements.txt||: + python2 setup.py install +done +cd /opt/graphite/conf +cp carbon.conf.example carbon.conf +cp storage-schemas.conf.example storage-schemas.conf +cd /opt/graphite/webapp/graphite +cp local_settings.py.example local_settings.py +PYTHONPATH=/opt/graphite/webapp django-admin.py syncdb --settings=graphite.settings +# push in the texts + +useradd -m graphite -d /opt/graphite -r +chown -R graphite /opt/graphite +cd here +cp carbon.service /opt/systemd/system/ +systemctl enable carbon +systemctl start carbon +cp graphite-web.service /opt/systemd/system/ +systemctl enable graphite-web +systemctl start graphite-web + |