3 #============LICENSE_START=======================================================
4 #Copyright (C) 2021 China Mobile.
5 #Copyright (C) 2021 Nokia
6 #==============================================================================
7 #Licensed under the Apache License, Version 2.0 (the "License");
8 #you may not use this file except in compliance with the License.
9 #You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 #Unless required by applicable law or agreed to in writing, software
14 #distributed under the License is distributed on an "AS IS" BASIS,
15 #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #See the License for the specific language governing permissions and
17 #limitations under the License.
18 #============LICENSE_END=========================================================
19 tosca_definitions_version: cloudify_dsl_1_3
21 - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
22 - plugin:dmaap?version=>=1.5.1,<2.0.0
23 - plugin:k8splugin?version=>=3.4.3,<4.0.0
27 description: replica count for deployment
31 description: docker image name and version
32 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.kpi-ms:1.0.0"
35 description: aaf username
36 default: "dcae@dcae.onap.org"
39 description: aaf password
40 default: "demo123456!"
41 dmaap_polling_interval:
43 description: dmaap polling interval
47 description: cbs polling interval
49 dmaap_polling_timeout:
51 description: dmaap polling timeout
55 description: dmaap server
56 default: "message-router"
59 description: consumer group
63 description: consumer id
67 description: log location in host
68 default: "/dockerdata-nfs/kpi-ms"
69 performance_management_topic_url:
71 description: performance measurement topic url
72 default: "https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS"
75 description: dcae control loop topic url
76 default: "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_KPI_OUTPUT"
79 type: dcae.nodes.ContainerizedServiceComponent
81 cloudify.interfaces.lifecycle:
90 path: { get_input: log_path }
92 bind: /home/kpims/logs
96 get_input: tag_version
97 service_component_type: 'dcae-kpi-ms'
99 service_component_name_override: 'dcae-kpi-ms'
100 always_pull_image: true
101 replicas: {get_input: replicas}
104 endpoint: /healthcheck
109 cert_directory: '/opt/app/kpims/etc/cert/'
112 aafUsername: { get_input: aaf_username }
113 aafPassword: { get_input: aaf_password }
114 trust_store_path: '/opt/app/kpims/etc/cert/trust.jks'
115 trust_store_pass_path: '/opt/app/kpims/etc/cert/trust.pass'
117 performance_management_topic:
118 aaf_username: { get_input: aaf_username }
119 aaf_password: { get_input: aaf_password }
121 topic_url: { get_input: performance_management_topic_url }
126 topic_url: { get_input: dcae_kpi_topic_url }
128 pollingInterval: { get_input: dmaap_polling_interval}
129 pollingTimeout: { get_input: dmaap_polling_timeout }
130 cbsPollingInterval: { get_input: cbs_polling_interval }
132 - { get_input: dmaap }
133 cg: { get_input: cg }
134 cid: { get_input: cid }
136 '{"domain":"measurementsForKpi","methodForKpi":[{"eventName":"perf3gpp_CORE-AMF_pmMeasResult","controlLoopSchemaType":"SLICE","policyScope":"resource=networkSlice;type=configuration","policyName":"configuration.dcae.microservice.kpi-computation","policyVersion":"v0.0.1","kpis":[{"measType":"AMFRegNbr","operation":"SUM","operands":"RM.RegisteredSubNbrMean"}]},{"eventName":"perf3gpp_CORE-UPF_pmMeasResult","controlLoopSchemaType":"SLICE","policyScope":"resource=networkSlice;type=configuration","policyName":"configuration.dcae.microservice.kpi-computation","policyVersion":"v0.0.1","kpis":[{"measType":"UpstreamThr","operation":"SUM","operands":"GTP.InDataOctN3UPF"},{"measType":"DownstreamThr","operation":"SUM","operands":"GTP.OutDataOctN3UPF"}]}]}'