From 2dffc1fc51878fcfe4d8e71e30c15b8cf184f5a8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 17 Jun 2013 11:25:16 +0200 Subject: [PATCH] Register all interesting events As stated in bug #1187833, there's no need to not record all of this events. We need to filter events on the state anyway. Also adding update events and documentation on how to enable them. Change-Id: Ic5845e1a3dc5ed531114e7ccdbe17bb98cb049fb Signed-off-by: Julien Danjou --- ceilometer/compute/notifications.py | 5 ++++- doc/source/install/manual.rst | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ceilometer/compute/notifications.py b/ceilometer/compute/notifications.py index cac9f59bc..ed9c97662 100644 --- a/ceilometer/compute/notifications.py +++ b/ceilometer/compute/notifications.py @@ -74,9 +74,12 @@ class ComputeInstanceNotificationBase(ComputeNotificationBase): """ @staticmethod def get_event_types(): - return ['compute.instance.create.end', + return ['compute.instance.create.start', + 'compute.instance.create.end', 'compute.instance.exists', + 'compute.instance.update', 'compute.instance.delete.start', + 'compute.instance.delete.end', 'compute.instance.finish_resize.end', 'compute.instance.resize.revert.end'] diff --git a/doc/source/install/manual.rst b/doc/source/install/manual.rst index bcb76fe3b..ade08acdf 100644 --- a/doc/source/install/manual.rst +++ b/doc/source/install/manual.rst @@ -143,6 +143,8 @@ Installing the Compute Agent # nova-compute configuration for ceilometer instance_usage_audit=True instance_usage_audit_period=hour + notify_on_state_change=vm_and_task_state + notify_on_any_change=True notification_driver=nova.openstack.common.notifier.rpc_notifier notification_driver=ceilometer.compute.nova_notifier