3c94fa75f8f539fe5d256047c9998408e479700f
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / conf / 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
19 # Logging settings.
20 logging:
21
22   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
23   level: INFO
24
25   # Logger-specific levels.
26   loggers:
27
28     # Sets the level for 'com.example.app' to DEBUG.
29     com.example: DEBUG
30   
31   appenders:
32     - type: console
33       threshold: INFO
34       timeZone: UTC
35       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
36     - type: file
37       threshold: INFO
38       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
39       currentLogFilename: ../logs/fm-relation.log
40       archivedLogFilenamePattern: ../logs/zip/fm-relation-%d{yyyy-MM-dd}.log.gz
41       archivedFileCount: 7
42   #  - type: socketJson
43       threshold: INFO 
44   #    autoDiscover: false
45   #    logstashServiceName: logstash
46    #   logstashServiceVersion: v1
47
48 #database
49 database:
50   driverClass: org.postgresql.Driver
51   user: holmes
52   password: holmespwd
53   url: jdbc:postgresql://10.96.33.33:5432/holmes
54   properties:
55     charSet: UTF-8
56   maxWaitForConnection: 1s
57   validationQuery: "/* MyService Health Check */ SELECT 1"
58   minSize: 8
59   maxSize: 100
60   checkConnectionWhileIdle: false
61   evictionInterval: 10s
62   minIdleTime: 1s