Skip to content

yesid-bocanegra/micrometer-kibana-dashboard

 
 

Repository files navigation

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

About

Kibana Dashboard for Spring Boot + Micrometer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 50.5%
  • Shell 49.5%