Data configurationGrafana integrationsIntegrations referenceSpring Boot integration

Spring Boot integration for Grafana Cloud

Spring Boot is Spring’s convention-over-configuration solution for creating stand-alone, production-grade Spring-based Applications. This integration enables the agent to send metrics to Grafana Cloud along with a useful default dashboard for visualization.

This integration monitors a Spring Boot app.

The dashboard is a modified version of the Spring Boot Statistics community dashboard.

The application must have the actuator enabled. The should have management.endpoints.web.exposure.include configured to include prometheus.

Please see the demo application for details.

Use the walkthrough in Grafana Cloud to install the Spring Boot integration.

Post-install configuration for the Spring Boot integration

In the agent configuration file, the agent must be pointed to the Spring Boot process, such as spring-boot:1235 in the example below, that exposes the /actuator/prometheus endpoint.

  wal_directory: /tmp/wal
    scrape_interval: 5s
  - name: integrations
      - job_name: integrations/spring-boot
          - targets: ['spring-boot:1235']
        metrics_path: /actuator/prometheus
      - url: http://cortex:9009/api/prom/push