From 7e429a87dd754b52ec173345acc1a8f777498651 Mon Sep 17 00:00:00 2001 From: Zhi Yan Liu Date: Mon, 25 Aug 2014 23:58:38 +0800 Subject: [PATCH] Add an exchange for Trove in profiler notification plugin To enable Trove to use ceilometer as trace info storage. Main patch in Trove is: I580cce8d2b3c4ec9ce625ac09de6f14e1249f6f5 Patch in Trove client is: I5a76e11d428c63d33f6d2c2021426090ebf8340c Change-Id: Idce1c327c6d21a767c612c13c1ad52a794017d71 Signed-off-by: Zhi Yan Liu --- ceilometer/profiler/notifications.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceilometer/profiler/notifications.py b/ceilometer/profiler/notifications.py index 3f51fa14b..f2bb02e5b 100644 --- a/ceilometer/profiler/notifications.py +++ b/ceilometer/profiler/notifications.py @@ -20,6 +20,13 @@ from ceilometer import plugin from ceilometer import sample +OPTS = [ + cfg.StrOpt('trove_control_exchange', + default='trove', + help="Exchange name for DBaaS notifications"), +] + +cfg.CONF.register_opts(OPTS) # TODO(boris-42): remove after adding keystone audit plugins. cfg.CONF.import_opt('keystone_control_exchange', 'ceilometer.identity.notifications') @@ -44,6 +51,7 @@ class ProfilerNotifications(plugin.NotificationBase): conf.heat_control_exchange, conf.keystone_control_exchange, conf.sahara_control_exchange, + conf.trove_control_exchange, ] for exchange in exchanges: