Coder Social home page Coder Social logo

majidhameed / micrometer-kibana-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acroquest/micrometer-kibana-dashboard

0.0 0.0 0.0 13.27 MB

Kibana Dashboard for Spring Boot + Micrometer.

License: Apache License 2.0

Shell 49.52% Batchfile 50.48%

micrometer-kibana-dashboard's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.