Graphite - KujiraProject/kujira-api GitHub Wiki
Defaultly Calamari's carbon-cache collects on start ceph metrics to dir: /var/lib/graphite
To install graphana follow this steps:
yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.6.0-1.x86_64.rpmsystemctl enable grafana-server.servicerebootyum install graphite-web -ychange in /etc/graphite-web/local-settings.py to STORAGE_DIR = '/var/lib/graphite'systemctl restart httpdcd /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:
after
Listen 80
add line
Listen 81
<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
