From e24bdf95d63d02076c9107692a9a152811c8435d Mon Sep 17 00:00:00 2001 From: Luis Pigueiras Date: Thu, 29 Jun 2017 14:21:00 +0200 Subject: [PATCH] Add event definition for manila Since the ceilometer integration has been merged in Manila (https://review.openstack.org/#/c/466586/) and some work has been done for the Manila ceilometer metrics (https://review.openstack.org/#/c/472752/), this commit is for having the notification defined by default so we can get all the fields from the Manila notification Change-Id: I1050bf8d7d62fc75cfd7d800921122eb25be5c5b --- .../pipeline/data/event_definitions.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/ceilometer/pipeline/data/event_definitions.yaml b/ceilometer/pipeline/data/event_definitions.yaml index d87e1dca86..d3079c3a3d 100644 --- a/ceilometer/pipeline/data/event_definitions.yaml +++ b/ceilometer/pipeline/data/event_definitions.yaml @@ -90,6 +90,36 @@ fields: payload.volume_type replication_status: fields: payload.replication_status +- event_type: ['share.create.*', 'share.delete.*', 'share.extend.*', 'share.shrink.*'] + traits: &share_traits + share_id: + fields: payload.share_id + user_id: + fields: payload.user_id + project_id: + fields: payload.tenant_id + snapshot_id: + fields: payload.snapshot_id + availability_zone: + fields: payload.availability_zone + status: + fields: payload.status + created_at: + fields: payload.created_at + share_group_id: + fields: payload.share_group_id + size: + fields: payload.size + name: + fields: payload.name + proto: + fields: payload.proto + is_public: + fields: payload.is_public + description: + fields: payload.description + host: + fields: payload.host - event_type: ['snapshot.exists', 'snapshot.create.*', 'snapshot.delete.*', 'snapshot.update.*'] traits: <<: *cinder_traits