blob: b976190a11c3d3f85de474b2e3c0ae5de0a68a25 [file] [log] [blame]
Piotr Daroszc2ac2322019-03-07 13:04:52 +01001tosca_definitions_version: cloudify_dsl_1_3
2imports:
3 - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
4 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/dockerplugin/3.2.0/dockerplugin_types.yaml
5 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/relationshipplugin/1.0.0/relationshipplugin_types.yaml
6 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
7
8inputs:
9 dh_override:
10 type: string
11 default: "component_dockerhost"
12 dh_location_id:
13 type: string
14 default: "zone1"
15 aaiEnrichmentHost:
16 type: string
17 default: "none"
18 aaiEnrichmentPort:
19 type: string
20 default: 8443
21 enableAAIEnrichment:
22 type: string
23 default: false
24 dmaap_host:
25 type: string
26 default: dmaap.onap-message-router
27 dmaap_port:
28 type: string
29 default: 3904
30 enableRedisCaching:
31 type: string
32 default: false
33 redisHosts:
34 type: string
35 tag_version:
36 type: string
37 default: "nexus3.onap.org:10001/onap//onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.0.0"
38 consul_host:
39 type: string
40 default: consul-server.onap-consul
41 consul_port:
42 type: string
43 default: "8500"
44 cbs_host:
45 type: string
46 default: "config-binding-service.dcae"
47 cbs_port:
48 type: string
49 default: "10000"
50 policy_id:
51 type: string
52 default: "none"
53 external_port:
54 type: string
55 description: "Port for CDAPgui to be exposed"
56 default: "32010"
57
58node_templates:
59 docker_service_host:
60 properties:
61 docker_host_override:
62 get_input: dh_override
63 location_id:
64 get_input: dh_location_id
65 type: dcae.nodes.SelectedDockerHost
66 tca_docker:
67 relationships:
68 - type: dcae.relationships.component_contained_in
69 target: docker_service_host
70 - target: tca_policy
71 type: cloudify.relationships.depends_on
72 type: dcae.nodes.DockerContainerForComponentsUsingDmaap
73 properties:
74 application_config:
75 app_config:
76 appDescription: DCAE Analytics Threshold Crossing Alert Application
77 appName: dcae-tca
78 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
79 tcaAlertsAbatementTableTTLSeconds: '1728000'
80 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
81 tcaVESAlertsTableName: TCAVESAlertsTable
82 tcaVESAlertsTableTTLSeconds: '1728000'
83 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
84 tcaVESMessageStatusTableTTLSeconds: '86400'
85 thresholdCalculatorFlowletInstances: '2'
86 app_preferences:
87 aaiEnrichmentHost:
88 get_input: aaiEnrichmentHost
89 aaiEnrichmentIgnoreSSLCertificateErrors: 'true'
90 aaiEnrichmentPortNumber: '8443'
91 aaiEnrichmentProtocol: https
92 aaiEnrichmentUserName: DCAE
93 aaiEnrichmentUserPassword: DCAE
94 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
95 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
96 enableAAIEnrichment:
97 get_input: enableAAIEnrichment
98 enableRedisCaching:
99 get_input: enableRedisCaching
100 redisHosts:
101 get_input: redisHosts
102 enableAlertCEFFormat: 'false'
103 publisherContentType: application/json
104 publisherHostName:
105 get_input: dmaap_host
106 publisherHostPort:
107 get_input: dmaap_port
108 publisherMaxBatchSize: '1'
109 publisherMaxRecoveryQueueSize: '100000'
110 publisherPollingInterval: '20000'
111 publisherProtocol: http
112 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
113 subscriberConsumerGroup: OpenDCAE-c12
114 subscriberConsumerId: c12
115 subscriberContentType: application/json
116 subscriberHostName:
117 get_input: dmaap_host
118 subscriberHostPort:
119 get_input: dmaap_port
120 subscriberMessageLimit: '-1'
121 subscriberPollingInterval: '30000'
122 subscriberProtocol: http
123 subscriberTimeoutMS: '-1'
124 subscriberTopicName: unauthenticated.SEC_MEASUREMENT_OUTPUT
125 tca_policy_default: '{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","controlLoopSchemaType":"VNF","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta","thresholdValue":300,"direction":"LESS_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta","thresholdValue":700,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]},{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta","thresholdValue":300,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]},{"eventName":"Measurement_vGMUX","controlLoopSchemaType":"VNF","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value","thresholdValue":0,"direction":"EQUAL","severity":"MAJOR","closedLoopEventStatus":"ABATED"},{"closedLoopControlName":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value","thresholdValue":0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}'
126 service_component_type: dcaegen2-analytics_tca
127 docker_config:
128 healthcheck:
129 endpoint: /healthcheck
130 interval: 15s
131 timeout: 1s
132 type: http
133 image:
134 get_input: tag_version
135 interfaces:
136 cloudify.interfaces.lifecycle:
137 start:
138 inputs:
139 envs:
140 DMAAPHOST:
141 { get_input: dmaap_host }
142 DMAAPPORT:
143 { get_input: dmaap_port }
144 DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT"
145 DMAAPSUBTOPIC: "unauthenticated.SEC_MEASUREMENT_OUTPUT"
146 AAIHOST:
147 { get_input: aaiEnrichmentHost }
148 AAIPORT:
149 { get_input: aaiEnrichmentPort }
150 CONSUL_HOST:
151 { get_input: consul_host }
152 CONSUL_PORT:
153 { get_input: consul_port }
154 CBS_HOST:
155 { get_input: cbs_host }
156 CBS_PORT:
157 { get_input: cbs_port }
158 CONFIG_BINDING_SERVICE: "config_binding_service"
159 ports:
160 - concat: ["11011:", { get_input: external_port }]
161 stop:
162 inputs:
163 cleanup_image: true
164 tca_policy:
165 type: dcae.nodes.policy
166 properties:
167 policy_id:
168 get_input: policy_id
169