Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / holmes / components / holmes-rule-mgmt / resources / config / rulemgt.yml
1 apidescription: ZTE Holmes rule Management rest API
2
3 # use the simple server factory if you only want to run on a single port
4 #server:
5 #  type: simple
6 #  connector:
7 #    type: http
8 #    port: 12003
9
10 server:
11   type: simple
12   rootPath: '/api/holmes-rule-mgmt/v1/*'
13   applicationContextPath: /
14   adminContextPath: /admin
15   connector:
16     type: http
17     port: 9101
18     validateCerts: false
19     validatePeers: false
20
21 # Logging settings.
22 logging:
23
24   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
25   level: INFO
26
27   # Logger-specific levels.
28   loggers:
29
30     # Sets the level for 'com.example.app' to DEBUG.
31     org.onap.holmes.rulemgt: ALL
32
33   appenders:
34     - type: console
35       threshold: INFO
36       timeZone: UTC
37       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
38     - type: file
39       threshold: ERROR
40       #logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
41       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
42       currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-error.log
43       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
44       archivedFileCount: 7
45     - type: file
46       threshold: INFO
47       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
48       currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-debug.log
49       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-debug-%d{yyyy-MM-dd}.log.gz
50       archivedFileCount: 7
51
52 #database
53 database:
54   driverClass: org.postgresql.Driver
55   user: ${JDBC_USERNAME}
56   password: ${JDBC_PASSWORD}
57   url: jdbc:postgresql://${URL_JDBC}:${DB_PORT}/${DB_NAME}
58   properties:
59     charSet: UTF-8
60   maxWaitForConnection: 1s
61   validationQuery: "/* MyService Health Check */ SELECT 1"
62   minSize: 8
63   maxSize: 100
64   checkConnectionWhileIdle: false
65   evictionInterval: 10s
66   minIdleTime: 1s