Skip to content

Upgrading Graphite on Ubuntu 14.04 (0.9.12.3 -> 0.9.15)

Reading time: 1 minute

If you’ve installed Graphite from the default Ubuntu 14.04 (trusty) repositories, chances are you’ve got version 0.9.12-3 installed. And you might have stumbled upon performance issues pulling large sets of data from Graphite using Grafana, as mentioned here.

Here’s a quick guide on how to upgrade Graphite to a version which supports the maxDataPoints parameter.

If you’re making changes to a production environment, make sure to create snapshots and take whatever measures needed to be able to get back to a restore point, should anything fail.

Next, check that a newer version has not been made available in the repositories (in which case, you could just do an apt-get install to get an updated version):

sudo apt-get update && aptitude versions graphite-carbon

If the output suggests that the only available package is version 0.9.12-3, proceed by downloading these packages and dependencies:

wget http://launchpadlibrarian.net/173841617/init-system-helpers_1.18_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/g/graphite-carbon/graphite-carbon_0.9.15-1_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/g/graphite-web/graphite-web_0.9.15+debian-2_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-django-tagging/python-django-tagging_0.4.5-1_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/p/python-django/python-django_1.8.7-1ubuntu11_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/p/python-django/python-django-common_1.8.7-1ubuntu11_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-whisper/python-whisper_0.9.15-1_all.deb

Upgrade graphite-carbon to version 0.9.15:

sudo dpkg -i init-system-helpers_1.18_all.deb
sudo dpkg -i graphite-carbon_0.9.15-1_all.deb

Upgrade graphite-web to version 0.9.15:

sudo dpkg -i python-django-common_1.8.7-1ubuntu11_all.deb
sudo dpkg -i python-django_1.8.7-1ubuntu11_all.deb
sudo dpkg -i python-django-tagging_0.4.5-1_all.deb
sudo dpkg -i python-whisper_0.9.15-1_all.deb
sudo dpkg -i graphite-web_0.9.15+debian-2_all.deb

Restart all services (including Grafana, if applicable):

sudo service carbon-cache restart
sudo service apache2 restart
sudo service grafana-server restart

That should be it! Good luck.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.