Skip to content
Przemysław Świderski edited this page Apr 19, 2016 · 2 revisions

Graphite

Graphite with Calamari-API

Defaultly Calamari's carbon-cache collects on start ceph metrics to dir: /var/lib/graphite

Graphana setup

To install graphana follow this steps:

yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.6.0-1.x86_64.rpm
systemctl enable grafana-server.service
reboot

Graphite-WEB setup

To install graphite-web follow this steps:
yum install graphite-web -y
change in /etc/graphite-web/local-settings.py to STORAGE_DIR = '/var/lib/graphite'
systemctl restart httpd
cd /var/lib/graphite; django-admin syncdb --settings graphite.settings
  • change in /etc/httpd/conf.d/graphite-vhost.conf
<VirtualHost *:80>
  • to:
<VirtualHost *:80>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, OPTIONS"
Header set Access-Control-Allow-Headers "origin, authorization, accept"
  • change <Directory> element to:
<Directory "/usr/share/graphite/"> 
Options All
AllowOverride All
Require all granted
</Directory>
It causes graphite-web to run on httpd server, but there is already calamari-web on the same port. If we want to get access to graphite-web, one of many ways to achieve that is to change reserved port:
change /etc/httpd/conf/httpd.conf

after

Listen 80

add line

Listen 81

and in /etc/httpd/conf.d/graphite-vhost.conf

<VirtualHost *:80>

change to

<VirtualHost *:81>

Now, after restarting httpd it is possible to connect with graphite-web and graphana on the following addresses:

  • graphite-web 127.0.0.1:81
  • grafana 127.0.0.1:3000

In case we want to access in our host we have to forward ports in virtualbox:

alt tag