Spring Boot Statistics Dashboard
Spring Boot Application Dashboard
docker-compose up -d
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=
./kibana_setup.sh
for Windows:
kibana_setup.bat
<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>
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.
management.metrics.export.elastic.host=http://localhost:9200
These values are used in filtering conditions of the dashboard.
management.metrics.tags.host=HOSTNAME
management.metrics.tags.application=APPLICATION
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