summaryrefslogtreecommitdiff
path: root/ceilometer/profiler
diff options
context:
space:
mode:
authorBoris Pavlovic <boris@pavlovic.me>2014-06-29 21:17:18 +0400
committerBoris Pavlovic <boris@pavlovic.me>2014-07-11 20:02:07 +0400
commit52b2779e1bae060d8dcf0edfc9307859d6cf4e93 (patch)
tree30eb655c9e98b1038a76221ab5ba78a8e066fd39 /ceilometer/profiler
parenteec8876ea153ba5a059d539abfe81144e1832ee6 (diff)
downloadceilometer-52b2779e1bae060d8dcf0edfc9307859d6cf4e93.tar.gz
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
Diffstat (limited to 'ceilometer/profiler')
-rw-r--r--ceilometer/profiler/notifications.py9
1 files changed, 8 insertions, 1 deletions
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: