oshi-spring-boot-starter
oshi-spring-boot-starter 是一个基于开源项目oshi编写的一个spring-boot-starter,目的是为了方便基于spring-boot的项目集成oshi组件,用于查看服务器的运行情况如:CPU、硬盘、内存、JVM等的使用情况。
UI动态展示系统参数, 基于spring boot,bootstrap4
run as a stand alone app or a dependency of any spring boot based application.
docker demo演示
run within docker by execute script below.
explanation: run service container as monitor and publish port on host server port 8081 or any other available ports you replace with.
sudo docker run -d --name monitor -p 8081:8080 imjcker/sys-spring-boot-starter:latest
克隆
git clone https://github.com/imjcker/oshi-spring-boot-starter
依赖引入
<dependency>
<groupId>com.imjcker</groupId>
<artifactId>oshi-spring-boot-starter</artifactId>
<version>1.0.1</version>
</dependency>
配置
# default configuration
imjcker:
oshi:
sys-view-servlet:
enbled: true
url-pattern: /oshi/*
微信公众号