diff --git a/openstack_operator/templates/ceilometer/deployment-agent-notification.yml.j2 b/openstack_operator/templates/ceilometer/deployment-agent-notification.yml.j2 index 2ae86bcc..b485e6c9 100644 --- a/openstack_operator/templates/ceilometer/deployment-agent-notification.yml.j2 +++ b/openstack_operator/templates/ceilometer/deployment-agent-notification.yml.j2 @@ -33,7 +33,7 @@ spec: {{ labels("ceilometer", "ceilometer") | indent(8) }} spec: containers: - - name: ceilometer-notification-agent + - name: agent image: vexxhost/ceilometer-agent-notification:latest volumeMounts: - name: ceilometer-config diff --git a/openstack_operator/templates/ceilometer/secret.yml.j2 b/openstack_operator/templates/ceilometer/secret.yml.j2 index cd01fef5..72ab17fe 100644 --- a/openstack_operator/templates/ceilometer/secret.yml.j2 +++ b/openstack_operator/templates/ceilometer/secret.yml.j2 @@ -22,6 +22,8 @@ stringData: ceilometer.conf: | [DEFAULT] transport_url = fake:/ + [event] + definitions_cfg_file = /etc/ceilometer/event_definitions.yaml [notification] ack_on_event_error = false {% for transport in spec.get('transports', []) %} @@ -43,3 +45,19 @@ stringData: - name: atmosphere publishers: - http://localhost:8080/v1/events + event_definitions.yaml: | + --- + - event_type: 'compute.instance.*' + traits: + resource_id: + fields: payload.instance_id + instance_type: + fields: payload.instance_type + state: + fields: payload.state + created_at: + type: datetime + fields: payload.created_at + deleted_at: + type: datetime + fields: payload.deleted_at