Skip to content

fonimus/actuator-site-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actuator Site for Spring Boot

Build Status Maven Central Maven Central

This project contains both the web site and the spring boot auto configuration. Check the vue and react demos.

Getting started

Dependency

<!-- choose between front type: vue or react -->
<dependency>
    <groupId>com.github.fonimus</groupId>
    <artifactId>actuator-site-spring-boot-vue</artifactId>
</dependency>
<!-- or -->
<dependency>
    <groupId>com.github.fonimus</groupId>
    <artifactId>actuator-site-spring-boot-react</artifactId>
</dependency>

Note:: auto configuration ActuatorSiteAutoConfiguration can be deactivated by property actuator.site.enabled=false

Configuration

Please check ActuatorSiteAutoConfiguration.kt for more information.

actuator:
  site:
    # set it to false to disable auto configuration
    enabled: true
    # path will be ${context-path}/${actuator-base-path}/site
    site-path: /site
    # if the actuator web site should be loaded form another directory, or if you want to use custom web site
    resource-path: classpath:/webjars/actuator-site/

Sample

Sample with provided configuration application.yml.

  1. Build sample application (use react profile to build sample with react dependency)

    mvn clean install [-DskipTests] [-P react]
  2. Start application

    java -jar sample/target/actuator-site-spring-boot-sample-[version].jar
  3. Go to http://localhost:8080/actuator/site/ , with user:password authentication

Release note

0.4.0

  • Small updates for vue front site
  • Implement react with material ui

0.3.0

0.2.0

  • Fix project without actuator dependency failure
  • Fix health without details error
  • Display home message if not endpoint available
  • Add links to actuator endpoint

0.1.0

  • First release