From 705bfa97c1fee315f721afd6f8cc01b5bea2c3a4 Mon Sep 17 00:00:00 2001 From: Rob Raymond Date: Mon, 7 Jul 2014 10:20:35 -0600 Subject: [PATCH] Add grafana to devstack. --- cookbooks/devstack/recipes/mon-ui.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cookbooks/devstack/recipes/mon-ui.rb b/cookbooks/devstack/recipes/mon-ui.rb index 0683c4c..041fbed 100644 --- a/cookbooks/devstack/recipes/mon-ui.rb +++ b/cookbooks/devstack/recipes/mon-ui.rb @@ -14,6 +14,13 @@ execute "ln -sfv /usr/local/lib/python2.7/dist-packages/enabled/* /opt/stack/hor execute "ln -sv /usr/local/lib/python2.7/dist-packages/monitoring /opt/stack/horizon/monitoring" execute "ln -sv /usr/local/lib/python2.7/dist-packages/cosmos/overcloud /opt/stack/horizon/openstack_dashboard/dashboards/overcloud" +# install grafana and integrate with horizon +execute "git clone https://github.com/hpcloud-mon/grafana.git /opt/stack/grafana" +execute "cp /opt/stack/grafana/src/config.sample.js /opt/stack/grafana/src/config.js" +execute "mkdir -p /opt/stack/horizon/grafana/static" +execute "touch /opt/stack/horizon/grafana/__init__.py" +execute "ln -sv /opt/stack/grafana/src /opt/stack/horizon/grafana/static/grafana" + # Bounce the webserver service "apache2" do action :restart