Add grafana to devstack.
This commit is contained in:
parent
d9d2c4afd7
commit
705bfa97c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue