...
The following endpoints are exposed to provide readiness and liveness probes for containerized application management
systems platforms like kubernetes
- /manage/health/readiness - indicates the application completed the initialization state stage and ready to accept the requests
- /manage/health/liveness - indicates the application is up and running, no need to restart the container
Code Block | ||
---|---|---|
| ||
$ curl http://localhost:8080/manage/health/readiness -i -X GET
$ curl http://localhost:8080/manage/health/liveness -i -X GET |
Logging: /manage/loggers
The endpoint allows to retrieve information about and update the log level setting on per logger identifier basis.
The following endpoints are exposed
- /manage/loggers - provides information about all the loggers configured
- /manage/loggers/{logger-id} GET - retrieves log level settings for requested logger identifier
- /manage/loggers/{logger-id} POST - updates or resets the log level settings for requested logger identifier
Getting log level information :
Code Block | ||
---|---|---|
| ||
$ curl http://localhost:8080/manage/loggers -i -X GET |
Loggers
...
$ curl http://localhost:8080/manage/loggers/org.onap.cps -i -X GET |
Updating log level:
Code Block | ||
---|---|---|
| ||
$ curl http://localhost:8080/manage/loggers/org.onap.cps -i -X POST -H 'Content-Type: application/json' -d '{"configuredLevel": "DEBUG"}' |
Resetting log level:
Code Block | ||
---|---|---|
| ||
$ curl http://localhost:8080/manage/loggers/org.onap.cps -i -X POST -H 'Content-Type: application/json' -d '{}' |
Resources
Documentation:
Tutorials:
- https://spring.io/guides/gs/actuator-service/
- https://www.baeldung.com/spring-boot-actuators
- https://www.baeldung.com/spring-boot-changing-log-level-at-runtime