From 1191dc24a23f56e583f744946a8f69ec7e4bd6af Mon Sep 17 00:00:00 2001 From: gordon chung Date: Mon, 15 Dec 2014 17:07:01 -0500 Subject: [PATCH] add glance events there are a few 'existence of' meters in glance that we could represent better as events. this patch adds them to the definition. Change-Id: I3d2ea24c37c2918c770d6ed4874f43d273f12953 Partial-Bug: #1384874 --- etc/ceilometer/event_definitions.yaml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/etc/ceilometer/event_definitions.yaml b/etc/ceilometer/event_definitions.yaml index 914c543cc..67bab4911 100644 --- a/etc/ceilometer/event_definitions.yaml +++ b/etc/ceilometer/event_definitions.yaml @@ -96,6 +96,38 @@ fields: payload.snapshot_id volume_id: fields: payload.volume_id +- event_type: ['image.update', 'image.upload', 'image.delete'] + traits: &glance_crud + project_id: + fields: payload.owner + resource_id: + fields: payload.id + name: + fields: payload.name + status: + fields: payload.status + created_at: + fields: payload.created_at + user_id: + fields: payload.owner + deleted_at: + fields: payload.deleted_at + size: + fields: payload.size +- event_type: image.send + traits: &glance_send + receiver_project: + fields: payload.receiver_tenant_id + receiver_user: + fields: payload.receiver_user_id + user_id: + fields: payload.owner_id + image_id: + fields: payload.image_id + destination_ip: + fields: payload.destination_ip + bytes_sent: + fields: payload.bytes_sent - event_type: orchestration.stack.* traits: &orchestration_crud project_id: