X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Falarmadapter%2Ftemplates%2Fconfig.yaml;h=532a5b9ecb4444561a45ed591f360b52e688cde5;hb=c11b514523ffa1e20391974b49f102530f9f02b7;hp=42f6ceb5ed187096a8fb79b6dd52be87045498fa;hpb=c4893da9a5b94d67fde93b743695cae554809b75;p=ric-plt%2Fric-dep.git diff --git a/helm/alarmadapter/templates/config.yaml b/helm/alarmadapter/templates/config.yaml index 42f6ceb..532a5b9 100644 --- a/helm/alarmadapter/templates/config.yaml +++ b/helm/alarmadapter/templates/config.yaml @@ -1,5 +1,5 @@ #================================================================================== -# Copyright (c) 2019 AT&T Intellectual Property. +# Copyright (c) 2019,2020 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,37 +16,43 @@ apiVersion: v1 kind: ConfigMap metadata: - name: alarmadaptercfg - namespace: ricplt + name: {{ include "common.configmapname.alarmadapter" . }}-appconfig + namespace: {{ include "common.namespace.platform" . }} data: - # FQDN and port info of rtmgr - alarmadaptercfg: | - "local": - "host": ":8080" - "logger": - "level": 4 - "db" : - "namespaces": - - - "sdl" - - - "rnib" - "rmr": - "protPort": "tcp:4560" - "maxSize": 1024 - "numWorkers": 1 - "promAlertManager": - "address": "elfkp-prometheus-alertmanager:9093" - "baseUrl": "/api/v2" - "schemes": http - "alertInterval": 30000 - "alarmDefinitions: - - - "specificProblem": 1234 - "Text": "Connection to DBAAS server lost" - - - "specificProblem": 1235 - "Text": "Distribution of internal routing table failed due to timeout" - - - "specificProblem": 1236 - "Text": "E2 connection to gNB lost" + config-file.json: |- + { + "local": { + "host": ":8080" + }, + "logger": { + "level": 4 + }, + "db": { + "namespaces": ["sdl", "rnib"] + }, + "rmr": { + "protPort": "tcp:4560", + "maxSize": 1024, + "numWorkers": 1 + }, + "promAlertManager": { + "address": {{ .Values.alarmadapter.alertManagerAddress | quote }}, + "baseUrl": "/api/v2", + "schemes": "http", + "alertInterval": 30000 + }, + "alarmDefinitions": [ + { + "specificProblem": 1234, + "Text": "Connection to DBAAS server lost" + }, + { + "specificProblem": 1235, + "Text": "Distribution of internal routing table failed due to timeout" + }, + { + "specificProblem": 1236, + "Text": "E2 connection to gNB lost" + } + ] + }