| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
import socket |
| 16 |
|
| 17 |
from oslo_config import cfg |
| 18 |
|
| 19 |
service_opts = [ |
| 20 |
cfg.StrOpt('hostname', |
| 21 |
default=socket.gethostname(), |
| 22 |
deprecated_name="host", |
| •23 |
sample_default='<HOSTNAME>', |
| 24 |
help=''' |
| 25 |
Hostname, FQDN or IP address of this host. Must be valid within AMQP key. |
| 26 |
|
| 27 |
Possible values: |
| 28 |
|
| 29 |
* String with hostname, FQDN or IP address. Default is hostname of this host. |
| 30 |
'''), |
| 31 |
cfg.StrOpt('instancemonitor_manager', |
| 32 |
default='masakarimonitors.instancemonitor.instance' |
| 33 |
'.InstancemonitorManager', |
| 34 |
help='Full class name for the Manager for instancemonitor.'), |
| 35 |
cfg.StrOpt('introspectiveinstancemonitor_manager', |
| 36 |
default='masakarimonitors.introspectiveinstancemonitor.instance' |
| 37 |
'.IntrospectiveInstanceMonitorManager', |
| 38 |
help='Full class name for introspectiveinstancemonitor.'), |
| 39 |
cfg.StrOpt('processmonitor_manager', |
| 40 |
default='masakarimonitors.processmonitor.process' |
| 41 |
'.ProcessmonitorManager', |
| 42 |
help='Full class name for the Manager for processmonitor.'), |
| 43 |
cfg.StrOpt('hostmonitor_manager', |
| 44 |
default='masakarimonitors.hostmonitor.host' |
| 45 |
'.HostmonitorManager', |
| 46 |
help='Full class name for the Manager for hostmonitor.'), |
| 47 |
] |
| 48 |
|
| 49 |
|
| 50 |
def register_opts(conf): |
| 51 |
conf.register_opts(service_opts) |
| 52 |
|
| 53 |
|
| 54 |
def list_opts(): |
| 55 |
return {'DEFAULT': service_opts} |