X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Falarmmanager%2Ftemplates%2Fconfigmap.yaml;fp=helm%2Falarmadapter%2Ftemplates%2Fconfig.yaml;h=b01e24bba5efbeca92b2ffe0e7c4eee77a948ea0;hb=refs%2Fchanges%2F70%2F5370%2F8;hp=532a5b9ecb4444561a45ed591f360b52e688cde5;hpb=bbcea345ef81e46f2fbd01e81d8870a3f0ed9404;p=ric-plt%2Fric-dep.git diff --git a/helm/alarmadapter/templates/config.yaml b/helm/alarmmanager/templates/configmap.yaml similarity index 60% rename from helm/alarmadapter/templates/config.yaml rename to helm/alarmmanager/templates/configmap.yaml index 532a5b9..b01e24b 100644 --- a/helm/alarmadapter/templates/config.yaml +++ b/helm/alarmmanager/templates/configmap.yaml @@ -1,5 +1,5 @@ #================================================================================== -# Copyright (c) 2019,2020 AT&T Intellectual Property. +# Copyright (c) 2019 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. @@ -13,14 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. #================================================================================== + apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "common.configmapname.alarmadapter" . }}-appconfig + name: {{ include "common.configmapname.alarmmanager" . }}-alarmmanagercfg namespace: {{ include "common.namespace.platform" . }} data: - config-file.json: |- - { + alarmmanagercfg: |- + { "local": { "host": ":8080" }, @@ -35,24 +36,15 @@ data: "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" + "controls": { + "promAlertManager": { + "address": "cpro-alertmanager:80", + "baseUrl": "api/v2", + "schemes": "http", + "alertInterval": 30000 }, - { - "specificProblem": 1236, - "Text": "E2 connection to gNB lost" - } - ] + "maxActiveAlarms": 5000, + "maxAlarmHistory": 20000, + "alarmInfoPvFile": "/mnt/pv-ricplt-alarmmanager/alarminfo.json" + } }