then a lot of magic
sudo apt-get install uwsgi uwsgi-plugin-python graphite-web graphite-carbon
<set salt thingy in /etc/graphite/local_settings.py>
!!! ABSOLUTELY DO EDIT /etc/carbon/storage-schemas.conf OR ELSE EVERYTHING GET DELETED AFTER ONE (1) DAY !!!
sudo graphite-manage syncdb
sudo chown _graphite: /var/lib/graphite/graphite.db
some of the edited files:
[uwsgi]
processes = 2
uid = _graphite
gid = _graphite
chdir = /usr/share/graphite-web
file = graphite.wsgi
chmod-socket = 666
server {
include snippets/listen_both_le.conf;
server_name graphite.minotopia.me;
server_name graphite2.minotopia.me;
server_name 127.0.0.2;
location / {
auth_basic "MinoTopia 1337 haxe graphing solute";
auth_basic_user_file /etc/graphite/graphite.htpasswd;
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/app/graphite/socket;
}
}