summaryrefslogtreecommitdiffstats
path: root/tests/monitor/__init__.py
diff options
context:
space:
mode:
authorUmar Farooq <umar.farooq@neclab.eu>2017-07-13 12:20:56 +0200
committerRyota Mibu <r-mibu@cq.jp.nec.com>2017-08-09 04:39:54 +0000
commit282369b6fd58a78e6a7c91f21b331363d4ed0fb3 (patch)
tree3dc95a2c16ca948627df6fb93629a3652e620211 /tests/monitor/__init__.py
parentdb6d9cdcb37fee810fdf59e4d96b9a5139b5c8b7 (diff)
Add Collectd as a Monitor Type
A plugin for collectd is added to use collectd on compute as a monitor type. Monitor files are updated accordingly. The inspector now listens on all interfaces instead of only localhost to enable it to communicate with compute node. JIRA: DOCTOR-86 JIRA: DOCTOR-101 Change-Id: Idc834d428152e4687020eff7d8db36a652b1bf86 Signed-off-by: Umar Farooq <umar.farooq@neclab.eu>
Diffstat (limited to 'tests/monitor/__init__.py')
-rw-r--r--tests/monitor/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/monitor/__init__.py b/tests/monitor/__init__.py
index 51a6a65d..e268907f 100644
--- a/tests/monitor/__init__.py
+++ b/tests/monitor/__init__.py
@@ -12,14 +12,15 @@ from oslo_utils import importutils
OPTS = [
cfg.StrOpt('type',
default='sample',
- choices=['sample'],
+ choices=['sample', 'collectd'],
help='the type of doctor monitor component',
required=True),
]
_monitor_name_class_mapping = {
- 'sample': 'monitor.sample.SampleMonitor'
+ 'sample': 'monitor.sample.SampleMonitor',
+ 'collectd': 'monitor.collectd.CollectdMonitor'
}
def get_monitor(conf, inspector_url, log):