可视化监控Spring Boot Admin

1.Spring Boot Admin

codecentric’s Spring Boot Admin is a community project to manage and monitor your Spring Boot ® applications. The applications register with our Spring Boot Admin Client (via HTTP) or are discovered using Spring Cloud ® (e.g. Eureka, Consul). The UI is just an AngularJs application on top of the Spring Boot Actuator endpoints.
springbootAdmin 是个监控和管理你的springboot应用的开源软件,这些应用作为客户端通过http或者通过springCloud的Eureka注册中心被注册到springbootserver上。springbootadmin UI是通过Angular Js 的搭建的页面将监控数据进行展示。

1.2搭建springboot admin server

注意springboot版本和admin版本的兼容性

1.2.1创建项目引入依赖

<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-server</artifactId>
    <version>1.5.7</version>
</dependency>

1.2.2修改启动类添加@EnableAdminServer 注解

@SpringBootApplication
@EnableAdminServer
public class AdminServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminServerApplication.class, args);
    }

}

1.2.3配置properties文件

server.port= 9090

springbootadmin-server

1.2.4 访问效果

在这里插入图片描述

1.3搭建springbootadmin-client

1.3.1创建项目引入依赖

<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-client</artifactId>
    <version>1.5.7</version>
</dependency>

1.3.2 配置properties文件

management.security.enabled= false
#springbootadmin-server IP地址和端口端口号
spring.boot.admin.url = http://localhost:9090

1.3.3 访问效果
在这里插入图片描述
在这里插入图片描述springbootadmin-client

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值