Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-thirumal/spring-boot-admin-server

spring-boot-admin-server with Eureka server/Registry
https://github.com/m-thirumal/spring-boot-admin-server

eureka-server java-15 metrics spring-boot-actuator spring-boot-admin

Last synced: 19 days ago
JSON representation

spring-boot-admin-server with Eureka server/Registry

Awesome Lists containing this project

README

        

# spring-boot-admin-server

Run with [Eureka server/registry](https://github.com/M-Thirumal/eureka-server)

* Spring boot admin will be the client of eureka-server

* Eureka-server will be the client of spring boot admin server

#### Login Details

```

URL : [http://localhost:7216](http://localhost:7216)

Username: thirumal

Password: thirumal
```

##### The eureka client must expose the actuator end point

management.endpoints.web.exposure.include=*
management.endpoint.shutdown.enabled=true
management.endpoints.beans.sensitive=false

##### Sample Eureka registration from client side

eureka:
instance:
appname: indsolv-cloud-config-server
leaseRenewalIntervalInSeconds: 10
preferIpAddress: true
health-check-url-path: /actuator/health
metadata-map:
startup: ${random.int} #needed to trigger info and endpoint update after restart
user:
name: "thirumal"
password: "thirumal"
client:
region: default
enabled: true
register-with-eureka: true
registryFetchIntervalSeconds: 5
fetch-registry: true
service-url:
defaultZone: http://thirumal:thirumal@localhost:8761/eureka/

## Architecture

![Spring-boot-Admin-server-client-with-eureka](output/Spring-boot-Admin-server-client-with-eureka.svg)

## Run as JAR

./spring-boot-admin-server.sh

## Run in docker

* Create docker layered image using the following command

mvn package
chmod -R 777 target/
mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
chmod -R 777 target/
docker build -t spring-boot-admin-server .

* Run the image

`docker run --name spring-boot-admin-server --restart always -d -p 7126:7126 spring-boot-admin-server`

* Run image with local log driver

`docker run --name spring-boot-admin-server --restart always --log-driver local --log-opt max-size=10m --log-opt max-file=3 --log-opt compress=true -d -p 7126:7126 spring-boot-admin-server`

* Run image without log driver

`docker run --name spring-boot-admin-server --restart always --log-driver none -d -p 7126:7126 spring-boot-admin-server`

## Output

![1.png](output/1.png)

![2.png](output/2.png)

![3.png](output/3.png)

![4.png](output/4.png)