Recent Tutorials and Articles
    Visualizing Spring Boot Metrics in Kibana
    Published on: 2019-01-24 15:01:45
    Posted By: Amit Kumar

    This tutorial describes how to visualize Spring Boot actuator metrics in Kibana from ElasticSearch indexes.

    Abstract


    Spring Boot, a microservices framework, has made it easy to export the metrics to an analytical system such as elastic, prometheus etc as demonstrated in Exporting Spring Boot Actuator Metrics to ElasticSearch.

    In this article, we will create Kibana visualizations and dashboards based on the metrics data exported in ElasticSearch cluster.

    Pre-requisites


    1. Running Cluster of ElasticSearch having Spring Boot Metrics. In case, you have not exported metrics to ElasticSearch, you can follow the article Exporting Spring Boot Actuator Metrics to ElasticSearch for same
    2. Kibana dashboard pointing to ElasticSearch cluster. In this tutorial, we have used version 6.5.3

     

    Visualizing Metrics using Kibana


    Once you start gettting metrics data into ElasticSearch, next step is to visualize this to make it useful.

    Kibana provides the concepts of Visualizations and Dashboards. Visualizations are charts that can be used to plot data while Dashboard is nothing but set of visualizations to analyze all the data from single page.

    We will start with creating an index pattern with metrics-* from Management menu of Kibana as follows -

     

    Metrics Visualizations


    We will create following visualizations to categorize different categories of data -

    • Memory Metrics
    • CPU Metrics
    • Threads Metrics

    We will be using following common configuration in all the visualizations and just add different filters to get different metrics -

     

    Memory Metrics


    Create a new visualization with common configuration and following filters -

    This is how it will look like -

    Save it with name memory-metrics.

     

    CPU Metrics


    Create a new visualization with common configuration and following filters -

    This is how it will look like -

     

    Save it with name cpu-metrics.

     

    Threads Metrics


    Create a new visualization with common configuration and following filters -

    This is how it will look like -

    Save it with name threads-metrics.

     

    Metrics Dashboard

     


    Finally create a new dashboard and add all the visualizations that we have created in last few sections. Here is how it looks like for me -

     

     

    Thank you for reading through the tutorial. In case of any feedback/questions/concerns, you can communicate same to us through your comments and we shall get back to you as soon as possible.

    Posted By: Amit Kumar
    Published on: 2019-01-24 15:01:45

    Comment Form is loading comments...