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.
Pre-install configuration for the Spring Boot integration
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
application.properties should have
management.endpoints.web.exposure.include configured to include
Refer to the demo application for details.
Install Spring Boot integration for Grafana Cloud
- In your Grafana Cloud instance, click Integrations and Connections (lightning bolt icon).
- Navigate to the Spring Boot tile and review the prerequisites. Then click Install integration.
- Once the integration is installed, follow the steps on the Configuration Details page to setup Grafana Agent and start sending Spring Boot metrics to your Grafana Cloud instance.
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
metrics: wal_directory: /tmp/wal global: scrape_interval: 60s configs: - name: integrations scrape_configs: - job_name: integrations/spring-boot static_configs: - targets: ['spring-boot:1235'] metrics_path: /actuator/prometheus remote_write: - url: http://cortex:9009/api/prom/push
The Spring Boot integration installs the following dashboards in your Grafana Cloud instance to help monitor your metrics.
- Spring Boot Statistics
Spring Boot Statistics
The following metrics are automatically written to your Grafana Cloud instance by connecting your Spring Boot instance through this integration:
# 0.0.4 - January 2023 * Adding Job filter and making filters All and Multi selectable # 0.0.3 - September 2022 * Update dashboard panels descriptions. # 0.0.2 - October 2021 * Update mixin to latest version: - Update queries to use $__rate_interval # 0.0.1 - December 2020 * Initial release
By connecting your Spring Boot instance to Grafana Cloud you might incur charges. To view information on the number of active series that your Grafana Cloud account uses for metrics included in each Cloud tier, see Active series and dpm usage and Cloud tier pricing.