Work items:
1. Fix hardcoded vdu
2. Add Functional test
3. Refactor tosca template for alarm
4. Support scaling in/out at the same time.
5. Support multiple triggers, multi-actions
6. Parameterize alarm configuration (threshold, evaluation, action). it could be nice if users can change alarm configuration with the same template.
An example for multiple triggers:
- vdu_cpu_usage_monitoring_policy:
type: tosca.policies.tacker.Alarming
triggers:
vdu_high_cpu_usage_with_scaling_out:
event_type:
type: tosca.events.resource.utilization
implementation: ceilometer
metrics: cpu_util
condition:
threshold: 50
constraint: utilization greater_than 50%
period: 600
evaluations: 1
method: avg
comparison_operator: gt
action: SP1
vdu_low_cpu_usage_with_scaling_in:
event_type:
type: tosca.events.resource.utilization
implementation: ceilometer
metrics: cpu_util
condition:
threshold: 10
constraint: utilization less_than 10%
period: 600
evaluations: 1
method: avg
comparison_operator: lt
action: SP1
vdu_high_cpu_usage_with_respawning:
event_type:
type: tosca.events.resource.utilization
implementation: ceilometer
metrics: cpu_util
condition:
threshold: 50
constraint: utilization greater_than 50%
period: 600
evaluations: 1
method: avg
comparison_operator: gt
action: respawn
Reviewed: https:/ /review. openstack. org/382479 /git.openstack. org/cgit/ openstack/ tacker/ commit/ ?id=0eafa5b1bf2 8678c707c36ed11 fba1ded1f61cbe
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0eafa5b1bf28678 c707c36ed11fba1 ded1f61cbe
Author: doantungbk <email address hidden>
Date: Wed Oct 5 07:51:17 2016 -0700
RFE alarm monitor: Fix hardcoded metadata,add func. test
This patch will focus on:
1. Fixing hardcoded metadata
2. Adding functional test for alarm monitor
3. Refactoring tosca template for alarm monitor
4. Refactoring scaling in/out support in alarm monitor
5. Supporting multi-trigger
Partial-bug: #1630614 381713bda01c485 cecae17abea
Change-Id: Ic5d0046d0dc0b4