1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| server:
| port: 9111
| spring:
| boot:
| admin:
| ui:
| title: Iailab监控中心
| client:
| username: admin
| password: admin
|
| security:
| user:
| name: admin
| password: admin
| application:
| name: monitor-server
|
| cloud:
| nacos:
| server-addr: @nacos.server@
| username: @nacos.username@
| password: @nacos.password@
| discovery:
| namespace: @profiles.active@ # 命名空间。这里使用 dev 开发环境
| metadata:
| version: @nacos.metadata.version@ # 服务实例的版本号,可用于灰度发布
| metadata:
| user.name: ${spring.security.user.name}
| user.password: ${spring.security.user.password}
|
|
| # 服务端点检查
| management:
| server:
| base-path: /actuator
| health:
| mail:
| enabled: false
| trace:
| http:
| enabled: true
| endpoints:
| web:
| exposure:
| include: "*"
| endpoint:
| health:
| show-details: always
|
|