From 52b2779e1bae060d8dcf0edfc9307859d6cf4e93 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Sun, 29 Jun 2014 21:17:18 +0400 Subject: Add keystone control exchange This patch adds 1) Notification exchange for keystone 2) Abbility to profile keystone In future we are going to add as well keystone audit notification pluging Change-Id: I21f78698431ef9da9ddf5771a0594e5ab7f755a5 --- ceilometer/profiler/notifications.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ceilometer/profiler') diff --git a/ceilometer/profiler/notifications.py b/ceilometer/profiler/notifications.py index 495805a6..e6c7b874 100644 --- a/ceilometer/profiler/notifications.py +++ b/ceilometer/profiler/notifications.py @@ -13,12 +13,18 @@ # License for the specific language governing permissions and limitations # under the License. +from oslo.config import cfg import oslo.messaging from ceilometer import plugin from ceilometer import sample +# TODO(boris-42): remove after adding keystone audit plugins. +cfg.CONF.import_opt('keystone_control_exchange', + 'ceilometer.identity.notifications') + + class ProfilerNotifications(plugin.NotificationBase): event_types = ["profiler.*"] @@ -35,7 +41,8 @@ class ProfilerNotifications(plugin.NotificationBase): conf.cinder_control_exchange, conf.glance_control_exchange, conf.neutron_control_exchange, - conf.heat_control_exchange + conf.heat_control_exchange, + conf.keystone_control_exchange ] for exchange in exchanges: -- cgit v1.2.1