tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 description: TOSCA Alerts Configuration document imports: - flame_clmc_alerts_definitions.yaml metadata: sfc: CLMCMetrics sfci: MS_I1 topology_template: policies: - scale_nginx_policy: type: eu.ict-flame.policies.StateChange triggers: high_requests: description: | This event triggers when the number of requests for a given service function exceeds a given threshold. event_type: threshold metric: nginx.requests condition: threshold: 5 granularity: 5 aggregation_method: mean resource_type: location: DC1 comparison_operator: gte action: implementation: - http://172.40.231.200:9999/ high_cpu_usage: description: This event triggers when the cpu system usage is too high. event_type: threshold metric: cpu.usage_system condition: threshold: 0.2 granularity: 10 aggregation_method: mean resource_type: location: DC1 sf: nginx comparison_operator: gte action: implementation: - http://172.40.231.200:9999/ increase_in_active_requests: description: This event triggers when the cpu system usage is too high. event_type: relative metric: nginx.accepts condition: threshold: 5 granularity: 10 resource_type: location: DC1 sf: nginx comparison_operator: gte action: implementation: - http://172.40.231.200:9999/ - deadman_policies: type: eu.ict-flame.policies.StateChange triggers: no_measurements: description: | This event triggers when RTT measurements are missing for more than 12 seconds. event_type: deadman metric: clcm.rtt condition: threshold: 0 granularity: 5 resource_type: sf: nginx host: DC1 location: DC1 action: implementation: - http://172.40.231.200:9999/