Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Collectd as a Monitor Type
[doctor.git]
/
tests
/
monitor
/
__init__.py
diff --git
a/tests/monitor/__init__.py
b/tests/monitor/__init__.py
index
51a6a65
..
e268907
100644
(file)
--- 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',
OPTS = [
cfg.StrOpt('type',
default='sample',
- choices=['sample'],
+ choices=['sample'
, 'collectd'
],
help='the type of doctor monitor component',
required=True),
]
_monitor_name_class_mapping = {
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):
}
def get_monitor(conf, inspector_url, log):