Add Rule Management Standalone
[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/correlation-mgt/v1/*'
13   applicationContextPath: /
14   adminContextPath: /admin
15   connector:
16     type: http
17     port: 12004
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: com.mysql.jdbc.Driver
51   user: root
52   password: root
53   #url: jdbc:mysql://${db_ip}:${db_port}/mysql?useUnicode=relationtesttrue&characterEncoding=UTF8
54   url: jdbc:mysql://localhost:3306/relationtest?useUnicode=true&characterEncoding=UTF8
55   properties:
56     charSet: UTF-8
57   maxWaitForConnection: 1s
58   validationQuery: "/* MyService Health Check */ SELECT 1"
59   minSize: 8
60   maxSize: 100
61   checkConnectionWhileIdle: false
62   evictionInterval: 10s
63   minIdleTime: 1s
64   #dbServiceName: dbService
65  # dbServiceVersion: v1
66
67 #mqConfig:
68 #  brokerIp: 127.0.0.1
69 #  brokerPort: 61616
70 #  autoDiscover: false
71 #  mqServiceName: activemq
72 #  mqServiceVersion: v1
73 #
74 #cacheConfig:
75 #  cacheServerIp: 10.74.156.206
76 #  cacheServerPort: 27017
77 #  autoDiscover: false
78 #  cacheServiceName: mongodbService
79 #  cacheServiceVersion: v1
80 #  asNamespace: zenap
81 #  type: mongodb
82 #  userName: zenap
83 #  password: zenap
84 #
85 # the micro service ip
86
87 #msbClientConfig:
88  # msbSvrIp: 10.74.156.206
89  # msbSvrPort: 10081
90
91 #kafkaClientConf:
92 #  bootstrapServers: 10.74.151.190:9092
93 #  autoDiscover: true
94 #  kafkaServiceName: kafka
95 #  kafkaServiceVersion: v1
96 #  consumerConf:
97 #    properties:
98 #      value.deserializer: org.apache.kafka.common.serialization.StringDeserializer
99 #  producerConf:
100 #    properties:
101 #      value.serializer: org.apache.kafka.common.serialization.StringSerializer
102 #
103 #zkConfig:
104 #  connectString: 10.74.151.195:2181
105 #  retryPolicy:
106 #    type: boundedExponentialBackoff
107 #    baseSleepTimeMs: 50
108 #    maxSleepTimeMs: 500
109 #    maxRetries: 3
110 #  sessionTimeout: 60
111 #  connectionTimeout: 15
112 #    autoDiscover: true
113 #  zkServiceName: zk
114 #  zkServiceVersion: v1
115 #
116 #ftpServiceConfig:
117 #  type: ftp
118 #  pasv: false
119 #  userName: uep
120 #  userPassword: U_tywg_2008_ftp
121 #  ftpServerAddress: 10.74.148.251
122 #  ftpServerPort: 20021
123 #  ftpsServerAddress: 10.74.148.251
124 #  ftpsServerPort: 20021
125 #  sftpServerAddress: 10.74.148.251
126 #  sftpServerPort: 20021
127 #