Giter Site home page Giter Site logo

spring-boot-admin's Introduction

Spring Boot Admin

1. What is spring boot admin?

Spring boot admin manages and monitors spring boot applications. The project is built using codecentric's spring-boot-admin-starter-server.

2. Registering Client Applications

In order to let spring boot admin monitor other applications, register the client applications by adding application url to the application.yml, for example: to register program service, add the following to application.yml:

spring.boot.admin.client.url: http://localhost:8082 
management.endpoints.web.exposure.include: "*"

As with Spring Boot 2 most of the endpoints aren’t exposed via http by default, we expose all of them. For production you should carefully choose which endpoints to expose.

Add the following dependencies to program service:

<dependency>
	<groupId>de.codecentric</groupId>
	<artifactId>spring-boot-admin-starter-client</artifactId>
	<version>2.1.3</version>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>

Spring boot admin reference guide: https://codecentric.github.io/spring-boot-admin/2.1.3/#_what_is_spring_boot_admin

3. Configuration with a Dockerized Spring Boot Service

The environment variable SPRING_BOOT_ADMIN_CLIENT_URL must be defined with the url of the spring-boot-admin server url.

As an example, to run the spring boot service car_service while registering it with the spring-boot-admin server at https://my-spring-boot-admin-server.org , the following command must be run:

docker run -e "SPRING_BOOT_ADMIN_CLIENT_URL=https://my-spring-boot-admin-server.org" car_service

The following is an example docker-compose.yml, where the Dockerfile.car_service is the dockerfile for the car_service

version: '3.2'
services:
  car_service:
    build:
      context: ./
      dockerfile: Dockerfile.car_service
    environment:
      SPRING_BOOT_ADMIN_CLIENT_URL: "https://my-spring-boot-admin-server"

spring-boot-admin's People

Contributors

rtisma avatar yalturmes avatar buwujiu avatar andricdu avatar joneubank avatar d8660091 avatar blabadi avatar

Watchers

James Cloos avatar  avatar Junjun Zhang avatar Ciarán Schütte avatar Melanie Courtot avatar Sam Rich avatar Hardeep Nahal-Bose avatar  avatar  avatar  avatar  avatar Leonardo Rivera avatar Christina Yung avatar Minh Ha avatar Dan avatar  avatar Bhavik Bhagat avatar

spring-boot-admin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.