Support file watcher to trigger GMR report
Allow generating GMR report upon file trigger in addition to a signal. The feature has been available in oslo.reports since 1.11.0[1] but it can't be used in aodh without proper initialization. [1] d23e0a65b23dc77d0104075d2313de6ca22b5cae Change-Id: I9ad70b40f233018072fb4405b1ea29b6d4d2bc1c
This commit is contained in:
parent
e52699f9eb
commit
6831c0303e
@ -22,6 +22,7 @@ import oslo_i18n
|
||||
from oslo_log import log
|
||||
from oslo_policy import opts as policy_opts
|
||||
from oslo_reports import guru_meditation_report as gmr
|
||||
from oslo_reports import opts as gmr_opts
|
||||
from oslo_utils import importutils
|
||||
|
||||
from aodh.conf import defaults
|
||||
@ -110,7 +111,8 @@ def prepare_service(argv=None, config_files=None):
|
||||
# NOTE(tkajinam): guru cannot run with service under apache daemon, so when
|
||||
# aod-api running with mod_wsgi, the argv is [], we don't start guru.
|
||||
if argv:
|
||||
gmr.TextGuruMeditation.setup_autorun(version)
|
||||
gmr_opts.set_defaults(conf)
|
||||
gmr.TextGuruMeditation.setup_autorun(version, conf=conf)
|
||||
|
||||
profiler.setup(conf)
|
||||
messaging.setup()
|
||||
|
Loading…
x
Reference in New Issue
Block a user