Skip to content
Kibana Dashboard for Spring Boot + Micrometer.
Batchfile Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Nov 11, 2019
README.ja.md Add setup script for Windows. Nov 22, 2019
README.md Add setup script for Windows. Nov 22, 2019
docker-compose.yml Create dashboards. Nov 22, 2019
kibana-dashboard.ndjson Modify dashboard. Nov 22, 2019
kibana-index.ndjson Create dashboards. Nov 22, 2019
kibana-visualize.ndjson Modify dashboard. Nov 22, 2019
kibana_setup.bat Add setup script for Windows. Nov 22, 2019
kibana_setup.sh Modify variable name. Nov 22, 2019

README.md

Micrometer Kibana Dashboard

Other languages: English, 日本語

Spring Boot Statistics Dashboard

Statistics

Spring Boot Application Dashboard

Application

Startup Elasticsearch/Kibana

Run docker-compose.

docker-compose up -d

Setup Kibana dashboard

Edit kibana_setup.sh if necessary.

KIBANA_HOST=localhost
KIBANA_PORT=5601
ELASTIC_USER=
ELASTIC_PASSWORD=

for Windows, edit kibana_setup.bat.

set KIBANA_HOST=localhost
set KIBANA_PORT=5601
set ELASTIC_USER=
set ELASTIC_PASSWORD=

Run setup script.

./kibana_setup.sh

for Windows:

kibana_setup.bat

Application Settings

Add dependencies.

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>io.micrometer</groupId>
        <artifactId>micrometer-core</artifactId>
    </dependency>
    <dependency>
        <groupId>io.micrometer</groupId>
        <artifactId>micrometer-registry-elastic</artifactId>
    </dependency>

Add application properties.

Common settings

management.metrics.export.elastic.enabled=true
management.metrics.export.elastic.step=10s
management.metrics.export.elastic.index=metrics
management.metrics.distribution.percentiles-histogram.http.server.requests=true
management.metrics.distribution.sla.http.server.requests=100ms, 400ms, 500ms, 2000ms
management.metrics.distribution.percentiles.http.server.requests=0.5, 0.9, 0.95, 0.99

Modify following settings depending on the environment.

Elasticsearch host

management.metrics.export.elastic.host=http://localhost:9200

Host name and Application name

These values are used in filtering conditions of the dashboard.

management.metrics.tags.host=HOSTNAME
management.metrics.tags.application=APPLICATION

User/Password

Add user/password settings if Basic authentication is applied to the Elasticsearch.

management.metrics.export.elastic.user-name=elastic
management.metrics.export.elastic.password=changeme
You can’t perform that action at this time.