Coder Social home page Coder Social logo

codechutney / sb-actuator-intro Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 79 KB

Spring Actuator usage and customization quick reference.

License: Apache License 2.0

Java 100.00%
spring-boot springboot actuator actuator-spring-boot gradle java java12 done

sb-actuator-intro's Introduction

SPRING BOOT ACTUATOR REFERENCE

High-level details

What are Actuators?

Also called Production ready features - these are features added to help monitor and manage your application when you push your application to production.

Default behaviors

URL: host:port/{context-root}/actuator

By default health, info are the endpoints enabled for Web. There are multiple other endpoints enabled by default for JMX.


How tos

Enable all endpoints for web

management:
  endpoints:
    web:
      base-path: /manage
      exposure:
        include: "*"

This code snippet also swaps /manage for /actuator.

See application.yml for more details on how to add Info that shows up when using the /info endpoint.


Good practices

It is recommended to secure endpoints that expose sensitive info, using spring-security for example.

Other tips and tricks

Add new/custom endpoints

https://docs.spring.io/spring-boot/docs/2.2.0.BUILD-SNAPSHOT/reference/html/production-ready-features.html#production-ready-endpoints-custom

Related: https://zavyn.blogspot.com/2017/05/kubernetes-readiness-and-liveness-with.html

Change log levels

https://docs.spring.io/spring-boot/docs/2.2.0.BUILD-SNAPSHOT/reference/html/production-ready-features.html#production-ready-loggers


Links

Documentation: https://docs.spring.io/spring-boot/docs/2.2.0.BUILD-SNAPSHOT/reference/html/production-ready-features.html#production-ready

sb-actuator-intro's People

Contributors

codechutney avatar

Watchers

 avatar

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.