congress-dashboard/congress_dashboard
Eric Kao becbd719cd Suppress 0s in monitoring pane rows
Do not set value to 0 and do not add rows without non-zero value.
Also fix javascript in template to avoid coloring 'No items to display.'

With the following rules:
$ openstack congress policy rule create action 'warning(x) :- blah(x)'
$ openstack congress policy rule create classification 'blah(x) :- error(x)'

Monitoring pane pre-patch shows rows of zero warning/error
screenshot: https://imagebin.ca/v/3VXCVtZxXYUQ

rows suppressed post-patch.
screenshot: https://imagebin.ca/v/3VXX9g34QOGf

Closes-Bug: 1708294

Change-Id: I56adc4da430e3e1e15bd31c42fe3f7bce996dcd0
2017-08-03 17:46:55 +00:00
..
api Add Monitoring violations panel 2017-07-17 15:36:38 +05:30
datasources Suppress 0s in monitoring pane rows 2017-08-03 17:46:55 +00:00
enabled Add Monitoring violations panel 2017-07-17 15:36:38 +05:30
monitoring Suppress 0s in monitoring pane rows 2017-08-03 17:46:55 +00:00
policies Merge "Add Monitoring violations panel" 2017-07-24 05:33:25 +00:00
static/admin Move congress_dashboard folder to this project 2017-03-15 04:41:58 +00:00
templates/admin Move congress_dashboard folder to this project 2017-03-15 04:41:58 +00:00
test Initial UI-cookiecutter commit 2017-03-14 09:20:55 +00:00
__init__.py Initial UI-cookiecutter commit 2017-03-14 09:20:55 +00:00
README.md Move congress_dashboard folder to this project 2017-03-15 04:41:58 +00:00
version.py Initial UI-cookiecutter commit 2017-03-14 09:20:55 +00:00

Congress Dashboard

Congress Dashboard is an extension for OpenStack Dashboard that provides a UI for Congress. With congress-dashboard, a user is able to easily write the policies and rules for governance of cloud.

Setup Instructions

This instruction assumes that Horizon is already installed and its installation folder is . Detailed information on how to install Horizon can be found at http://docs.openstack.org/developer/horizon/quickstart.html#setup.

To integrate congress with horizon, copy the files in <congress_dashboard>/enabled to /openstack_dashboard/local/enabled/

$ cp -b <congress_dashboard>/enabled/_50_policy.py /openstack_dashboard/local/enabled/ $ cp -b <congress_dashboard>/enabled/_60_policies.py /openstack_dashboard/local/enabled/ $ cp -b <congress_dashboard>/enabled/_70_datasources.py /openstack_dashboard/local/enabled/

Restart Apache server sudo service apache2 restart