alarmadapter helm renamed to alarmmanager
[ric-plt/ric-dep.git] / helm / alarmmanager / templates / configmap.yaml
1 #==================================================================================
2 #   Copyright (c) 2019 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
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: {{ include "common.configmapname.alarmmanager" . }}-alarmmanagercfg
21   namespace: {{ include "common.namespace.platform" . }}
22 data:
23   alarmmanagercfg: |-
24     {  
25       "local": {
26         "host": ":8080"
27       },
28       "logger": {
29         "level": 4
30       },
31       "db": {
32         "namespaces": ["sdl", "rnib"]
33       },
34       "rmr": {
35         "protPort": "tcp:4560",
36         "maxSize": 1024,
37         "numWorkers": 1
38       },
39       "controls": {
40         "promAlertManager": {
41           "address": "cpro-alertmanager:80",
42           "baseUrl": "api/v2",
43           "schemes": "http",
44           "alertInterval": 30000
45         },
46         "maxActiveAlarms": 5000,
47         "maxAlarmHistory": 20000,
48         "alarmInfoPvFile": "/mnt/pv-ricplt-alarmmanager/alarminfo.json"
49       }
50     }