summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgordon chung <gord@live.ca>2015-03-20 16:58:39 -0400
committergordon chung <gord@live.ca>2015-03-23 22:16:38 +0000
commitaa9be399c1f2e2feb9cf73379d8a9d95e4adce86 (patch)
tree3883706d63c3958f5d0d1b605f9a16ddcb7b6733
parentb0ba68526854497335cc3087ae9d49340dee1d43 (diff)
downloadceilometer-aa9be399c1f2e2feb9cf73379d8a9d95e4adce86.tar.gz
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
-rw-r--r--ceilometer/middleware.py3
-rw-r--r--ceilometer/profiler/notifications.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/ceilometer/middleware.py b/ceilometer/middleware.py
index f8c305a9..9aed621f 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 c44c376e..5373173c 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.*"]