Created
April 27, 2012 12:18
-
-
Save johanek/2508733 to your computer and use it in GitHub Desktop.
CentOS 6 graphite
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
yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 \ | |
bitmap bitmap-fonts python-devel python-crypto pyOpenSSL zope gcc django-taggin | |
yum install python-Twisted <- fpm build | |
yum install pythin-pip <- fpm | |
test: | |
yum install python-carbon python-whisper python-graphite-conf | |
cd /opt/graphite/conf | |
rename .conf.example .conf * | |
cd /opt/graphite/webapp/graphite | |
python manage.py syncdb | |
chown -R apache:apache /opt/graphite/storage/ | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName graphite01.dhcp.dneg.com | |
DocumentRoot "/opt/graphite/webapp" | |
CustomLog /var/log/httpd/graphite.access_log combined | |
<Location "/"> | |
SetHandler python-program | |
PythonPath "['/opt/graphite/webapp'] + ['/usr/lib/python/site-packages/'] + sys.path" | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE graphite.settings | |
PythonDebug Off | |
PythonAutoReload Off | |
</Location> | |
<Location "/content/"> | |
SetHandler None | |
</Location> | |
<Location "/media/"> | |
SetHandler None | |
</Location> | |
alias /media/ /usr/lib/python/site-packages/django/contrib/admin/media/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.4aiur.net/2012/01/installing-and-configuring-graphite-on-centos/