Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ArrayList
- emqx
- #spring boot admin
- #MSA
- mosquitto
- com.netflix.zuul.exception.ZuulException
- com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
- CORS policy: No 'Access-Control-Allow-Origin'
- mysql 다국어
- 크로스도메인
- xrdp
- #actuator
- TreeMap
- java collection
- db utf8
- mstsc
- cors
- Access-Control-Allow-Origin
- HashMap
- Set
- 원격
- #spring boot
- backtracking
- message protocol
- mariadb 한국어
- Hystrix Read time out
- IOT
- mariadb 다국어
- mysql 한국어
- mqtt
Archives
- Today
- Total
miin29na
[spring boot] spring boot admin 본문
Spring boot admin?
- spring boot 는 actuator Endpoint 로 프로그램의 모니터링이 가능하다. (json 정보)
- actuator 통해 UI 화 한, dashboard 기능으로 나온 것이 SpringBoot Admin 이다.
- client 들의 서비스 UP/DOWN 상태 확인 가능
- 디스크, 메모리 사용량, 가비지 컬렉터 등 상태 확인
- Running 중에 Log level 변경 가능
1. Spring boot admin Server Configuration
1.1 Pom.xml
(주의 : 1.X 대 version 은 spring-boot-admin-server 이름으로 나온것 같다.)
1 2 3 4 5 | <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> <version>2.0.2</version> </dependency> | cs |
1.2 SpringBootApplication.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import org.springframework.cloud.openfeign.EnableFeignClients; .. 생략 @SpringBootApplication @EnableDiscoveryClient @EnableSwagger2 @EnableFeignClients @EnableAdminServer public class EngineeringApplication { public static void main(String[] args) { SpringApplication.run(EngineeringApplication.class, args); } .. 생략 } | cs |
2. Spring boot admin Client Configuration
2.1 pom.xml
1 2 3 4 5 | <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-client</artifactId> <version>2.0.2</version> </dependency> | cs |
2.2 application.yml or bootstap.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | spring: application: name: thingRegistry-service cloud: config: uri: http://localhost:8088 boot: admin: client: url: "http://localhost:9060" management: endpoints: web: exposure: include: "*" endpoint: health: show-details: ALWAYS | cs |
2개의 Spring Boot project 를 실행 했으며 같은 localhost 에 실행 하였다.
Web 에서 http://localhost:9060 으로 접속하면,
Spring Boot Admin UI 확인 가능하다.
reference.
[1]http://codecentric.github.io/spring-boot-admin/2.0.2/
Comments