From 39d51579d43254e6915a5d5dbc22dbb79e716024 Mon Sep 17 00:00:00 2001 From: gordon chung Date: Sat, 6 Dec 2014 13:40:28 -0500 Subject: [PATCH] add cinder events there are a few 'existence of' meters in cinder that we could represent better as events. this patch adds them to the definition. Change-Id: I69dc1c3eb98b9821c4febb021656d0e9ca78af2e Partial-Bug: #1384874 --- etc/ceilometer/event_definitions.yaml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/etc/ceilometer/event_definitions.yaml b/etc/ceilometer/event_definitions.yaml index 05a5f5c5d..914c543cc 100644 --- a/etc/ceilometer/event_definitions.yaml +++ b/etc/ceilometer/event_definitions.yaml @@ -60,6 +60,42 @@ audit_period_ending: type: datetime fields: payload.audit_period_ending +- event_type: ['volume.exists', 'volume.create.*', 'volume.delete.*', 'volume.resize.*', 'volume.attach.*', 'volume.detach.*', 'volume.update.*', 'snapshot.exists', 'snapshot.create.*', 'snapshot.delete.*', 'snapshot.update.*'] + traits: &cinder_traits + user_id: + fields: payload.user_id + project_id: + fields: payload.tenant_id + availability_zone: + fields: payload.availability_zone + display_name: + fields: payload.display_name + replication_status: + fields: payload.replication_status + status: + fields: payload.status + created_at: + fields: payload.created_at +- event_type: ['volume.exists', 'volume.create.*', 'volume.delete.*', 'volume.resize.*', 'volume.attach.*', 'volume.detach.*', 'volume.update.*'] + traits: + <<: *cinder_traits + resource_id: + fields: payload.volume_id + host: + fields: payload.host + size: + fields: payload.size + type: + fields: payload.volume_type + replication_status: + fields: payload.replication_status +- event_type: ['snapshot.exists', 'snapshot.create.*', 'snapshot.delete.*', 'snapshot.update.*'] + traits: + <<: *cinder_traits + resource_id: + fields: payload.snapshot_id + volume_id: + fields: payload.volume_id - event_type: orchestration.stack.* traits: &orchestration_crud project_id: