← All dashboards

Spring Boot 1.x

Dashboard for Spring Boot 1.x apps using Micrometer and Prometheus

Dashboard for Spring Boot 1.x applications, using Micrometer and Prometheus.

Features

  • Overall status
  • API stats
  • Tomcat
  • JVM

Variables

Only one variable is declared in Grafana:

  • $job : property “job_name” coming from prometheus.yml config file

Enable Actuator /prometheus endpoint

Here are the dependencies to add in pom.xml:

<!-- Actuator (with security enabled) -->
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-security</artifactId>
</dependency>

<!-- Monitoring endpoint - Micrometer + Prometheus -->
<dependency>
	<groupId>io.micrometer</groupId>
	<artifactId>micrometer-spring-legacy</artifactId>
	<version>1.0.6</version>
</dependency>
<dependency>
	<groupId>io.micrometer</groupId>
	<artifactId>micrometer-registry-prometheus</artifactId>
	<version>1.0.6</version>
</dependency>

Add config in prometheus.yml

Snippet for a https endpoint:

  - job_name: my-app-prod
    scheme: https
    basic_auth:
      username: your_actuator_user
      password: your_actuator_password
    metrics_path: /MyApp/actuator/prometheus
    static_configs:
      - targets:
          - "your_hostname:your_port"   

Snippet for a http endpoint:

  - job_name: my-app-prod
    scheme: http
    metrics_path: /MyApp/actuator/prometheus
    static_configs:
      - targets:
          - "your_hostname:your_port"   

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 944