Graphite & Grafana

This aritcle aims to install graphite and grafana in one ubuntu 16.04 machine and integreate them and test it.

Graphite installation:

Lets install it on Ubuntu 16.04.03 LTS version

Package Install

sudo apt-get update
sudo apt-get install graphite-web graphite-carbon -y
sudo apt-get install postgresql libpq-dev python-psycopg2 -y

PostgreSQL Setup:

sudo -u postgres psql
CREATE USER graphite WITH PASSWORD 'password';
CREATE DATABASE graphite WITH OWNER graphite;
\q

configure graphite:

sudo nano /etc/graphite/local_settings.py
# Edit the below cofniguration
DATABASES = {
    'default': {
        'NAME': 'graphite',
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'USER': 'graphite',
        'PASSWORD': 'password',
        'HOST': '127.0.0.1',
        'PORT': ''
    }

Migrate /auth setup

sudo graphite-manage migrate auth
sudo graphite-manage syncdb # setup the root password

configure carbon

sudo nano /etc/default/graphite-carbon
CARBON_CACHE_ENABLED=true


sudo cp /usr/share/doc/graphite-carbon/examples/storage-aggregation.conf.example /etc/carbon/storage-aggregation.conf
sudo apt-get install apache2 libapache2-mod-wsgi -y

install & configure apache

sudo apt-get install apache2 libapache2-mod-wsgi -y
sudo cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/
sudo a2dissite 000-default
sudo a2ensite apache2-graphite
sudo systemctl restart apache2
sudo ufw allow 80

Thats all

open the browser and access this host on port 80.

Reference:

https://www.vultr.com/docs/how-to-install-and-configure-graphite-on-ubuntu-16-04

results matching ""

    No results matching ""