actuator-site-spring-boot

Actuator Site for Spring Boot


Project maintained by fonimus Hosted on GitHub Pages — Theme by mattgraham

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

0.3.0

0.2.0

0.1.0