Learn about the Spring Boot Integration.

Spring Boot Integration

Spring Boot lets you set up, configure, and run both simple and web-based applications. Wavefront supports Spring Boot in two ways:

  • This integration has setup steps for configuring a Spring Boot application to send data to Wavefront. A dashboard for examining metrics is included with this integration.
  • The Spring Boot tutorial shows how to send data using the Spring Petclinic application.

In addition to setting up the metrics flow, this integration also installs a dashboard that allows you to monitor the performance of your Spring Boot application. Here’s a preview of the dashboard:





Spring Boot Setup

Wavefront for Spring Boot allows you to quickly configure your environment, so Spring Boot 3 components send metrics, histograms, and traces or spans to the Wavefront service. For more information, see Wavefront for Spring Boot 3 documentation.

Note: If you are using Spring Boot 2, see Wavefront for Spring Boot 2 documentation.

Configure Your Application

Follow the steps given below to add the required dependencies to the pom.xml file of an existing Spring project that uses Maven.

Note: If you are using Gradle, see Initialize and Configure Your Project and click the Initialize an Existing Project tab for more details.

  • Import the wavefront-spring-boot-bom Bill Of Materials (BOM).

    Replace $releaseVersion with the latest version mentioned in the documentation.

  • Add the wavefront-spring-boot-starter to your project.

  • If you want to send trace data using Micrometer Tracing, add the following dependencies.

Custom Configurations

Optionally, you can:

  • Invite users and let them send data to the same cluster.
  • Configure your application to send data via the Wavefront proxy because Wavefront for Spring Boot sends data via direct ingestion by default.

For details, see Custom Configurations.