1 # ============LICENSE_START====================================================
2 # =============================================================================
3 # Copyright (C) 2019 IBM
4 # =============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END======================================================
18 tosca_definitions_version: cloudify_dsl_1_3
20 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
21 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.5/k8splugin_types.yaml
22 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
26 description: Kubernetes node port on which collector is exposed
30 default: 'dcae-analytics-tca-gen2'
35 description: number of instances
39 default: "mongodb://localhost:27017/analytics-tca"
42 default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:3.0.0-SNAPSHOT"
48 default: "http://localhost:8443"
52 tca_handle_in_subscribe_url:
54 tca_handle_out_publish_url:
58 type: dcae.nodes.ContainerizedPlatformComponent
60 cloudify.interfaces.lifecycle:
71 get_input: tca_handle_out_publish_url
77 get_input: tca_handle_in_subscribe_url
80 get_input: spring.mongodb.uri
81 streams_subscribes.tca_handle_in.consumer_group: cg1
82 streams_subscribes.tca_handle_in.consumer_ids[0]: c0
83 streams_subscribes.tca_handle_in.consumer_ids[1]: c1
84 streams_subscribes.tca_handle_in.message_limit: 50000
85 streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000
86 streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000
87 streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000
88 streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000
89 streams_subscribes.tca_handle_in.polling.fixedRate: 0
90 streams_subscribes.tca_handle_in.timeout: -1
91 tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf
92 tca.aai.node_query_path: aai/v11/search/nodes-query
94 get_input: tca.aai.password
96 get_input: tca.aai.url
98 get_input: tca.aai.username
99 tca.policy: {"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"Mfvs_eNodeB_RANKPI","controlLoopSchemaType":"VNF","policyScope":"resource=vFirewall;type=configuration","policyName":"configuration.dcae.microservice.tca.xml","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":4000,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":20000,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"},{"closedLoopControlName":"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09","closedLoopEventStatus":"ABATED","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":0,"direction":"EQUAL","severity":"CRITICAL"}]},{"eventName":"vLoadBalancer","controlLoopSchemaType":"VNF","policyScope":"resource=vLoadBalancer;type=configuration","policyName":"configuration.dcae.microservice.tca.xml","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500,"direction":"LESS_OR_EQUAL","severity":"MAJOR"},{"closedLoopControlName":"CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":5000,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL"}]},{"eventName":"virtualVMEventName","controlLoopSchemaType":"VM","policyScope":"resource=virtualVM;type=configuration","policyName":"configuration.dcae.microservice.tca.xml","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A","closedLoopEventStatus":"ONSET","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated","thresholdValue":500,"direction":"LESS_OR_EQUAL","severity":"MAJOR"}]}]}
100 tca.processing_batch_size: 10000
105 endpoint: actuator/health
107 get_input: tag_version
109 get_input: log_directory
110 dns_name: { get_input: service_name }
113 name: { get_input: service_name }