59fe784c8ce0e897f7685f4bd9a30e72dffb3091
[dcaegen2.git] / docs / sections / services / kpi-computation-ms / configuration.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 Configuration
5 =============
6
7 KPI Computation MS expects to be able to fetch configuration directly from consul service in following JSON format:
8
9 .. code-block:: json
10     {
11       "pollingInterval": 20,
12       "aafUsername": "dcae@dcae.onap.org",
13       "streams_publishes": {
14         "kpi_topic": {
15           "type": "message-router",
16           "dmaap_info": {
17             "topic_url": "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_KPI_OUTPUT"
18           }
19         }
20       },
21       "trust_store_pass_path": "/opt/app/kpims/etc/cert/trust.pass",
22       "cid": "kpi-cid",
23       "cg": "kpi-cg",
24       "streams_subscribes": {
25         "performance_management_topic": {
26           "aaf_password": "demo123456!",
27           "type": "message-router",
28           "dmaap_info": {
29             "topic_url": "https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS"
30           },
31           "aaf_username": "dcae@dcae.onap.org"
32         }
33       },
34       "trust_store_path": "/opt/app/kpims/etc/cert/trust.jks",
35       "pollingTimeout": 60,
36       "cbsPollingInterval": 60,
37       "aafPassword": "demo123456!",
38       "kpi.policy": "{\"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_AcmeNode-Acme_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\"}]}]}",
39       "dmaap.server": ["message-router"]
40     }
41
42 During ONAP OOM/Kubernetes deployment this configuration is created from KPI Computation MS Cloudify blueprint.