From cbf3eed761056623c5b732baf0bca5bc9ea22607 Mon Sep 17 00:00:00 2001 From: Xia Linjuan Date: Thu, 4 Feb 2016 00:18:57 -0500 Subject: Enable the Load Balancer v2 events In this change set, add the following new event definitions to receive the events of LBaaS v2. a. loadbalancer b. listener c. healthmonitor These events can be used for billing when the users use the LBaaS service. Co-Authored-By: Zi Lian Ji Change-Id: I6db28a934bac4a1d83cc1b61d879dc2b16989b3a Implements: blueprint lbaas-v2-enablement --- etc/ceilometer/event_definitions.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/ceilometer/event_definitions.yaml b/etc/ceilometer/event_definitions.yaml index 763ff49f..3aa04095 100644 --- a/etc/ceilometer/event_definitions.yaml +++ b/etc/ceilometer/event_definitions.yaml @@ -243,7 +243,7 @@ fields: _context_user_id project_id: fields: _context_tenant -- event_type: ['network.*', 'subnet.*', 'port.*', 'router.*', 'floatingip.*', 'pool.*', 'vip.*', 'member.*', 'health_monitor.*', 'firewall.*', 'firewall_policy.*', 'firewall_rule.*', 'vpnservice.*', 'ipsecpolicy.*', 'ikepolicy.*', 'ipsec_site_connection.*'] +- event_type: ['network.*', 'subnet.*', 'port.*', 'router.*', 'floatingip.*', 'pool.*', 'vip.*', 'member.*', 'health_monitor.*', 'healthmonitor.*', 'listener.*', 'loadbalancer.*', 'firewall.*', 'firewall_policy.*', 'firewall_rule.*', 'vpnservice.*', 'ipsecpolicy.*', 'ikepolicy.*', 'ipsec_site_connection.*'] traits: &network_traits user_id: fields: _context_user_id @@ -294,6 +294,21 @@ <<: *network_traits resource_id: fields: ['payload.health_monitor.id', 'payload.id'] +- event_type: healthmonitor.* + traits: + <<: *network_traits + resource_id: + fields: ['payload.healthmonitor.id', 'payload.id'] +- event_type: listener.* + traits: + <<: *network_traits + resource_id: + fields: ['payload.listener.id', 'payload.id'] +- event_type: loadbalancer.* + traits: + <<: *network_traits + resource_id: + fields: ['payload.loadbalancer.id', 'payload.id'] - event_type: firewall.* traits: <<: *network_traits -- cgit v1.2.1