Ask Your Question
0

How to add another option under the system panel in Horizon dashboard? [closed]

asked 2015-06-29 04:54:33 -0600

sanjana gravatar image

updated 2015-06-29 05:03:16 -0600

Adding an option of "alarms" under the system panel in Horizon

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sanjana
close date 2016-01-04 23:34:09.090893

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-29 22:14:45 -0600

nethawk gravatar image

You can do like these:

  1. modify dashboard.py This file is in this directory:/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin In this file,there is a class SystemPanels,you can add a item to its attribute panels like this: panels = ('overview', 'metering', 'hypervisors', 'aggregates', 'instances', 'volumes', 'flavors', 'images', 'networks', 'routers', 'info','alarms')
  2. create alarms directory create a directory named alarms in /usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin In alarms directory,there are at least 4 files: panel.py,urls.py,views.py,__init__.py and a directory templates You can make these files and diretory referring to other direcroties in admin,such as routers,info and so on. Each directory in admin is represent a option in the system panel.
edit flag offensive delete link more

Comments

By the way,I tried the method above on Icehouse.

nethawk gravatar imagenethawk ( 2015-06-29 22:16:23 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-06-29 04:54:33 -0600

Seen: 165 times

Last updated: Jun 29 '15