From aa9be399c1f2e2feb9cf73379d8a9d95e4adce86 Mon Sep 17 00:00:00 2001 From: gordon chung Date: Fri, 20 Mar 2015 16:58:39 -0400 Subject: [PATCH] support disabling profiler and http meters there is support to disable all non-metric meters. the profiler and http meters should be part of this list but were left out. Change-Id: I0ad0e9d1258b237d5e4d30bf999e0fa67d308227 Closes-Bug: #1434711 --- ceilometer/middleware.py | 3 ++- ceilometer/profiler/notifications.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ceilometer/middleware.py b/ceilometer/middleware.py index f8c305a93..9aed621f2 100644 --- a/ceilometer/middleware.py +++ b/ceilometer/middleware.py @@ -40,7 +40,8 @@ OPTS = [ cfg.CONF.register_opts(OPTS) -class HTTPRequest(plugin_base.NotificationBase): +class HTTPRequest(plugin_base.NotificationBase, + plugin_base.NonMetricNotificationBase): event_types = ['http.request'] @staticmethod diff --git a/ceilometer/profiler/notifications.py b/ceilometer/profiler/notifications.py index c44c376ef..5373173c1 100644 --- a/ceilometer/profiler/notifications.py +++ b/ceilometer/profiler/notifications.py @@ -35,7 +35,8 @@ cfg.CONF.import_opt('keystone_control_exchange', 'ceilometer.identity.notifications') -class ProfilerNotifications(plugin_base.NotificationBase): +class ProfilerNotifications(plugin_base.NotificationBase, + plugin_base.NonMetricNotificationBase): event_types = ["profiler.*"]