Skip to content
Monitor Your Java Apps with Spring Boot Actuator
Java
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of indiepopart:master.
Latest commit 21c41ba Jul 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper add missing .mvn May 20, 2019
src updated pom to remove unnecessary Jul 17, 2019
.gitignore add missing .mvn May 20, 2019
README.md added blog post link Jul 18, 2019
mvnw initial commit May 20, 2019
mvnw.cmd initial commit May 20, 2019
pom.xml updated pom to remove unnecessary Jul 17, 2019

README.md

Monitor Your Java Apps with Spring Boot Actuator

This repository shows you how to use the Spring Boot Actuator project to monitor your app.

It also extends the base functionality to be able to monitor all the HTTP traffic during an OpenID Connect authentication flow.

The blog post that references this repository can be found on the Okta Developer Blog.

Prerequisites: Java 8.

Okta has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.

Getting Started

To install this example, run the following commands:

git clone https://github.com/oktadeveloper/okta-spring-boot-custom-actuator-example.git
cd okta-spring-boot-custom-actuator-example

Create an Application in Okta

Log in to your Okta Developer account (or sign up if you don’t have an account).

  1. From the Applications page, choose Add Application.
  2. On the Create New Application page, select Web.
  3. Note the Client ID and Client Secret values.

Build your app and start the server

OKTA_OAUTH2_REDIRECTURI=/authorization-code/callback \
OKTA_OAUTH2_ISSUER=https://{yourOktaDomain}/oauth2 \
OKTA_OAUTH2_CLIENT_ID=<client id> \
OKTA_OAUTH2_CLIENT_SECRET=<client secret> \
./mvnw spring-boot:run

Go to /hello/greeting.

View the HTTP Trace

After the login, go to /actuator/httptrace.

Links

This example uses the following open source libraries:

Help

Please post any questions as comments on the blog post, or on the Okta Developer Forums.

License

Apache 2.0, see LICENSE.

You can’t perform that action at this time.