- Spring Boot - Google OAuth2 Sign-In
- Spring Boot - Google Cloud Platform
- Spring Boot - OAuth2 with JWT
- Securing Web Applications
- Spring Boot - Database Handling
- Rest Controller Unit Test
- Spring Boot - Unit Test Cases
- Spring Boot - Twilio
- Spring Boot - Apache Kafka
- Spring Boot - Batch Service
- Spring Boot - Web Socket
- Spring Boot - Hystrix
- Spring Boot - Sending Email
- Spring Boot - Flyway Database
- Tracing Micro Service Logs
- Spring Boot - Creating Docker Image
- Spring Boot - Enabling Swagger2
- Spring Boot - Admin Client
- Spring Boot - Admin Server
- Spring Boot - Actuator
- Spring Cloud Configuration Client
- Spring Cloud Configuration Server
- Zuul Proxy Server and Routing
- Service Registration with Eureka
- Spring Boot - Eureka Server
- Spring Boot - Enabling HTTPS
- Spring Boot - Scheduling
- Spring Boot - Internationalization
- Spring Boot - CORS Support
- Consuming RESTful Web Services
- Spring Boot - Thymeleaf
- Spring Boot - Service Components
- Spring Boot - File Handling
- Spring Boot - Rest Template
- Spring Boot - Tomcat Port Number
- Spring Boot - Servlet Filter
- Spring Boot - Interceptor
- Spring Boot - Exception Handling
- Building RESTful Web Services
- Spring Boot - Logging
- Spring Boot - Application Properties
- Spring Boot - Runners
- Spring Beans & Dependency Injection
- Spring Boot - Code Structure
- Spring Boot - Build Systems
- Spring Boot - Tomcat Deployment
- Spring Boot - Bootstrapping
- Spring Boot - Quick Start
- Spring Boot - Introduction
- Spring Boot - Home
Spring Boot Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Spring Boot - Admin Cpent
For monitoring and managing your microservice apppcation via Spring Boot Admin Server, you should add the Spring Boot Admin starter cpent dependency and point out the Admin Server URI into the apppcation properties file.
Note − For monitoring an apppcation, you should enable the Spring Boot Actuator Endpoints for your Microservice apppcation.
First, add the following Spring Boot Admin starter cpent dependency and Spring Boot starter actuator dependency in your build configuration file.
Maven users can add the following dependencies in your pom.xml file −
<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-cpent</artifactId> <version>1.5.5</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
Gradle users can add the following dependencies in your build.gradle file.
compile group: de.codecentric , name: spring-boot-admin-starter-cpent , version: 1.5.5 compile( org.springframework.boot:spring-boot-starter-actuator )
Now, add the Spring Boot Admin Server URL into your apppcation properties file.
For properties file users, add the following properties in the apppcation.properties file.
spring.boot.admin.url = http://localhost:9090/
For YAML users, add the following property in apppcation.yml file.
spring: boot: admin: url: http://localhost:9000/
Now, create an executable JAR file, and run the Spring Boot apppcation by using the following Maven or Gradle commands.
For Maven, you can use the command as shown −
mvn clean install
After “BUILD SUCCESS”, you can find the JAR file under the target directory.
For Gradle, you can use the command as shown −
gradle clean build
After “BUILD SUCCESSFUL”, you can find the JAR file under the build/pbs directory.
Now, run the JAR file by using the command shown −
java –jar <JARFILE>
Now, the apppcation has started on the Tomcat port 9090 as shown −
Now hit the following URL from your web browser and see your spring Boot apppcation is registered with Spring Boot Admin Server.
http://localhost:9090/
Now, cpck the Details button and the see the actuator endpoints in Admin Server UI.
Advertisements