Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spring-boot-admin-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张大伟
spring-boot-admin-server
Commits
eb4be581
Commit
eb4be581
authored
Aug 31, 2019
by
张大伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
23a6b8e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
README.md
README.md
+30
-1
clients.PNG
img/clients.PNG
+0
-0
detial.PNG
img/detial.PNG
+0
-0
No files found.
README.md
View file @
eb4be581
# spring-boot 应用监控
+
该服务默认端口
\ No newline at end of file
+
该服务默认端口8788
+
邮件通知只需要修改对用的服地址,用户名和密码即可
+
如果需要自定义通知,修改CustomNotifier类即可,继承AbstractStatusChangeNotifier类
### 客户端集成
+
引入maven依赖
```
$xslt
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>
```
+
增加配置
```
$xslt
spring.boot.admin.client.url=http://localhost:8788
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
```
最好写上服务名称,否则发送邮件的时候不知道是哪个服务挂了
```
$xslt
spring.application.name= 服务名称
```
### 运行
启动server端服务,访问 http://ip:8788/ 即可


\ No newline at end of file
img/clients.PNG
0 → 100644
View file @
eb4be581
57 KB
img/detial.PNG
0 → 100644
View file @
eb4be581
77.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment