{"id":16387562,"url":"https://github.com/janoside/ubuntu-statsd-graphite-setup","last_synced_at":"2026-06-03T03:30:16.447Z","repository":{"id":4744555,"uuid":"5894136","full_name":"janoside/ubuntu-statsd-graphite-setup","owner":"janoside","description":"Steps for setting up Ubuntu server running Statsd and Graphite.","archived":false,"fork":false,"pushed_at":"2013-06-03T17:15:10.000Z","size":110,"stargazers_count":39,"open_issues_count":1,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-03T07:25:33.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janoside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-20T22:59:02.000Z","updated_at":"2019-08-13T15:09:23.000Z","dependencies_parsed_at":"2022-09-21T19:30:35.695Z","dependency_job_id":null,"html_url":"https://github.com/janoside/ubuntu-statsd-graphite-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janoside%2Fubuntu-statsd-graphite-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janoside%2Fubuntu-statsd-graphite-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janoside%2Fubuntu-statsd-graphite-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janoside%2Fubuntu-statsd-graphite-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janoside","download_url":"https://codeload.github.com/janoside/ubuntu-statsd-graphite-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170087,"owners_count":19759145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T04:26:52.044Z","updated_at":"2026-06-03T03:30:16.372Z","avatar_url":"https://github.com/janoside.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"ubuntu-statsd-graphite-setup\n============================\n\n* Ubuntu 12.04\n * Name: 099720109477/ubuntu/images/ebs/ubuntu-precise-12.04-i386-server-20120822\n * AMI ID: ami-057bcf6c\n* Graphite 0.9.10\n * https://launchpad.net/graphite/0.9/0.9.10\n* Statsd\n * https://github.com/etsy/statsd\n\n1. Adapted from: http://kaivanov.blogspot.com/2012/02/how-to-install-and-use-graphite.html\n\n```sh\napt-get update\napt-get upgrade\nwget http://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz\nwget http://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz\nwget http://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz\ntar -zxvf graphite-web-0.9.10.tar.gz\ntar -zxvf carbon-0.9.10.tar.gz\ntar -zxvf whisper-0.9.10.tar.gz\nmv graphite-web-0.9.10 graphite\nmv carbon-0.9.10 carbon\nmv whisper-0.9.10 whisper\nrm carbon-0.9.10.tar.gz\nrm graphite-web-0.9.10.tar.gz\nrm whisper-0.9.10.tar.gz\napt-get install --assume-yes apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libapache2-mod-wsgi libaprutil1-ldap memcached python-cairo python-cairo-dev python-django python-ldap python-memcache python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server bzr expect ssh libapache2-mod-python python-setuptools\napt-get install build-essential python-dev vim\neasy_install zope.interface\neasy_install twisted\neasy_install txamqp\neasy_install django\neasy_install django-tagging\n\npushd whisper\n python setup.py install\npopd\n\npushd carbon\n python setup.py install\npopd\n\npushd carbon/conf\n cp carbon.conf.example carbon.conf\n cp storage-schemas.conf.example storage-schemas.conf\npopd\n\npushd graphite\n python check-dependencies.py\n python setup.py install\n\n pushd examples\n  cp example-graphite-vhost.conf /etc/apache2/sites-available/default\n  cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi\n  vim /etc/apache2/sites-available/default\n popd\npopd\n\n```\n\n```\n# This needs to be in your server's config somewhere, probably\n# the main httpd.conf\n# NameVirtualHost *:80\n\n# This line also needs to be in your server's config.\n# LoadModule wsgi_module modules/mod_wsgi.so\n\n# You need to manually edit this file to fit your needs.\n# This configuration assumes the default installation prefix\n# of /opt/graphite/, if you installed graphite somewhere else\n# you will need to change all the occurances of /opt/graphite/\n# in this file to your chosen install location.\n\n\u003cIfModule !wsgi_module.c\u003e\n    LoadModule wsgi_module modules/mod_wsgi.so\n\u003c/IfModule\u003e\n\n# XXX You need to set this up!\n# Read http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGISocketPrefix\n#WSGISocketPrefix run/wsgi\nWSGISocketPrefix /etc/httpd/wsgi/\n\n\u003cVirtualHost *:80\u003e\n        ServerName graphite\n        DocumentRoot \"/opt/graphite/webapp\"\n        ErrorLog /opt/graphite/storage/log/webapp/error.log\n        CustomLog /opt/graphite/storage/log/webapp/access.log common\n\n        # I've found that an equal number of processes \u0026 threads tends\n        # to show the best performance for Graphite (ymmv).\n        WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120\n        WSGIProcessGroup graphite\n        WSGIApplicationGroup %{GLOBAL}\n        WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}\n\n        # XXX You will need to create this file! There is a graphite.wsgi.example\n        # file in this directory that you can safely use, just copy it to graphite.wgsi\n        WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi\n\n        Alias /content/ /opt/graphite/webapp/content/\n        \u003cLocation \"/content/\"\u003e\n                SetHandler None\n        \u003c/Location\u003e\n\n        # XXX In order for the django admin site media to work you\n        # must change @DJANGO_ROOT@ to be the path to your django\n        # installation, which is probably something like:\n        # /usr/lib/python2.6/site-packages/django\n        Alias /media/ \"@DJANGO_ROOT@/contrib/admin/media/\"\n        \u003cLocation \"/media/\"\u003e\n                SetHandler None\n        \u003c/Location\u003e\n\n        # The graphite.wsgi file has to be accessible by apache. It won't\n        # be visible to clients because of the DocumentRoot though.\n        \u003cDirectory /opt/graphite/conf/\u003e\n                Order deny,allow\n                Allow from all\n        \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n2. Adapted from: http://www.kinvey.com/blog/item/158-how-to-set-up-metric-collection-using-graphite-and-statsd-on-ubuntu-1204-lts\n\n```\nsudo apt-get install python-software-properties\nsudo apt-add-repository ppa:chris-lea/node.js\nsudo apt-get update\nsudo apt-get install nodejs\nsudo apt-get install git\n\ncd /opt \u0026\u0026 sudo git clone git://github.com/etsy/statsd.git\n\ncat \u003e\u003e /tmp/localConfig.js \u003c\u003c EOF\n{\n  graphitePort: 2003\n, graphiteHost: \"127.0.0.1\"\n, port: 8125\n}\nEOF\n\nsudo cp /tmp/localConfig.js /opt/statsd/localConfig.js\n```\n\nReferences\n* http://stackoverflow.com/questions/7099197/tracking-metrics-using-statsd-via-etsy-and-graphite-graphite-graph-doesnt-se\n* http://www.kinvey.com/blog/item/158-how-to-set-up-metric-collection-using-graphite-and-statsd-on-ubuntu-1204-lts\n* http://www.kinvey.com/blog/item/178-graphite-on-ubuntu-1204-lts-part-ii-gunicorn-nginx-and-supervisord\n* http://supervisord.org/\n* http://supervisord.org/installing.html#installing-to-a-system-with-internet-access\n* http://kaivanov.blogspot.com/2012/02/how-to-install-and-use-graphite.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanoside%2Fubuntu-statsd-graphite-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanoside%2Fubuntu-statsd-graphite-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanoside%2Fubuntu-statsd-graphite-setup/lists"}