Fix for RIC alarm flow
[ric-plt/ric-dep.git] / helm / alarmadapter / templates / config.yaml
1 #==================================================================================
2 #   Copyright (c) 2019,2020 AT&T Intellectual Property.
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #==================================================================================
16 apiVersion: v1
17 kind: ConfigMap
18 metadata:
19   name: {{ include "common.configmapname.alarmadapter" . }}-appconfig
20   namespace: {{ include "common.namespace.platform" . }}
21 data:
22   config-file.json: |-
23     {
24       "local": {
25         "host": ":8080"
26       },
27       "logger": {
28         "level": 4
29       },
30       "db": {
31         "namespaces": ["sdl", "rnib"]
32       },
33       "rmr": {
34         "protPort": "tcp:4560",
35         "maxSize": 1024,
36         "numWorkers": 1
37       },
38       "promAlertManager": {
39         "address": {{ .Values.alarmadapter.alertManagerAddress | quote }},
40         "baseUrl": "/api/v2",
41         "schemes": "http",
42         "alertInterval": 30000
43       },
44       "alarmDefinitions": [
45         {
46           "specificProblem": 1234,
47           "Text": "Connection to DBAAS server lost"
48         },
49         {
50           "specificProblem": 1235,
51           "Text": "Distribution of internal routing table failed due to timeout"
52         },
53         {
54           "specificProblem": 1236,
55           "Text": "E2 connection to gNB lost"
56         }
57       ]
58     }