Watcher plugins table in Guru meditation reports
In this changeset, I added the list of all the available plugins for the current instance of any given Watcher service. Partially Implements: blueprint plugins-parameters Change-Id: I58c9724a229712b0322a578f0f89a61b38dfd80a
This commit is contained in:
@@ -21,12 +21,9 @@ import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_reports import guru_meditation_report as gmr
|
||||
|
||||
from watcher._i18n import _
|
||||
from watcher._i18n import _LI
|
||||
from watcher.common import service
|
||||
from watcher import version
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
CONF = cfg.CONF
|
||||
@@ -35,8 +32,6 @@ CONF = cfg.CONF
|
||||
def main():
|
||||
service.prepare_service(sys.argv)
|
||||
|
||||
gmr.TextGuruMeditation.setup_autorun(version)
|
||||
|
||||
host, port = cfg.CONF.api.host, cfg.CONF.api.port
|
||||
protocol = "http" if not CONF.api.enable_ssl_api else "https"
|
||||
# Build and start the WSGI app
|
||||
@@ -44,11 +39,11 @@ def main():
|
||||
'watcher-api', CONF.api.enable_ssl_api)
|
||||
|
||||
if host == '0.0.0.0':
|
||||
LOG.info(_('serving on 0.0.0.0:%(port)s, '
|
||||
'view at %(protocol)s://127.0.0.1:%(port)s') %
|
||||
LOG.info(_LI('serving on 0.0.0.0:%(port)s, '
|
||||
'view at %(protocol)s://127.0.0.1:%(port)s') %
|
||||
dict(protocol=protocol, port=port))
|
||||
else:
|
||||
LOG.info(_('serving on %(protocol)s://%(host)s:%(port)s') %
|
||||
LOG.info(_LI('serving on %(protocol)s://%(host)s:%(port)s') %
|
||||
dict(protocol=protocol, host=host, port=port))
|
||||
|
||||
launcher = service.process_launcher()
|
||||
|
||||
Reference in New Issue
Block a user