Fix some mistake and format in docs
Change-Id: I4280d50412c4915aa085c5c1d8f449d0dc323161
This commit is contained in:
parent
b31b196f66
commit
efa7e69154
@ -2,7 +2,7 @@
|
|||||||
CloudKitty's Architecture
|
CloudKitty's Architecture
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
CloudKitty can be cut in four big parts:
|
CloudKitty can be cut in five big parts:
|
||||||
|
|
||||||
* API
|
* API
|
||||||
* Data collection (collector)
|
* Data collection (collector)
|
||||||
@ -110,6 +110,10 @@ Example of minimal rating module (taken from the Noop module):
|
|||||||
"""
|
"""
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@property
|
||||||
|
def priority(self):
|
||||||
|
return 1
|
||||||
|
|
||||||
def reload_config(self):
|
def reload_config(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -59,9 +59,9 @@ Install the dashboard module
|
|||||||
|
|
||||||
PY_PACKAGES_PATH=`pip --version | cut -d' ' -f4`
|
PY_PACKAGES_PATH=`pip --version | cut -d' ' -f4`
|
||||||
|
|
||||||
#. Add the enabled file to the horizon settings or installation. Depending on
|
#. Add the enabled file to the horizon settings or installation.
|
||||||
your setup, you might need to add it to ``/usr/share`` or directly in the
|
Depending on your setup, you might need to add it to ``/usr/share`` or
|
||||||
horizon python package::
|
directly in the horizon python package::
|
||||||
|
|
||||||
# If horizon is installed by packages:
|
# If horizon is installed by packages:
|
||||||
ln -sf $PY_PACKAGES_PATH/cloudkittydashboard/enabled/_[0-9]*.py \
|
ln -sf $PY_PACKAGES_PATH/cloudkittydashboard/enabled/_[0-9]*.py \
|
||||||
|
@ -10,8 +10,24 @@ operator can set the priority for a module. The order in which the modules
|
|||||||
process the data depends on their priority. The module with the highest
|
process the data depends on their priority. The module with the highest
|
||||||
priority comes first.
|
priority comes first.
|
||||||
|
|
||||||
|
List current modules
|
||||||
|
====================
|
||||||
|
|
||||||
|
List current rating modules:
|
||||||
|
|
||||||
|
.. code:: raw
|
||||||
|
|
||||||
|
$ cloudkitty module-list
|
||||||
|
+-----------+---------+----------+
|
||||||
|
| Module | Enabled | Priority |
|
||||||
|
+-----------+---------+----------+
|
||||||
|
| hashmap | False | 1 |
|
||||||
|
| noop | True | 1 |
|
||||||
|
| pyscripts | True | 1 |
|
||||||
|
+-----------+---------+----------+
|
||||||
|
|
||||||
Enable or disable module
|
Enable or disable module
|
||||||
==========================
|
========================
|
||||||
|
|
||||||
Enable the hashmap rating module:
|
Enable the hashmap rating module:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user