summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-26 17:13:27 +0000
committerGerrit Code Review <review@openstack.org>2015-03-26 17:13:27 +0000
commit614e2373ecca5367414c2cc9e578fb73576431c0 (patch)
tree61cf499ec55bae30e4ee0305003d59155b389205
parent53ae04422207f046048aad2b5d1d09810ae35135 (diff)
parentaa9be399c1f2e2feb9cf73379d8a9d95e4adce86 (diff)
downloadceilometer-614e2373ecca5367414c2cc9e578fb73576431c0.tar.gz
Merge "support disabling profiler and http meters"
-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.*"]