How to Monitor Spring Boot Application With Prometheus and Grafana

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • In this video, we will be exploring how we can monitor our spring boot application using Prometheus and Grafana.
    We would gather information using Prometheus and then visualise the data on a Grafana dashboard.
    Here is is a link to a community provided dashboard: grafana.com/grafana/dashboard...
    If you find problems working the dashboard, you can always refer to my Github repo. Link is present in the article on my website refactorfirst.com : refactorfirst.com/spring-boot...
    You can support me by buying me a coffee 😄 : www.buymeacoffee.com/amrutprabhu
    Gear I use:
    Sony Alpha a6000 : Amazon India : amzn.to/3RM7QMJ
    Germany : amzn.to/3G1Iw24
    US : amzn.to/3cpKZ9E
    UK : amzn.to/3J0g5Ry
    Razer Microphone : Amazon India : amzn.to/3aQxI9C
    Germany : amzn.to/3DRRrAh
    US : amzn.to/3ITKu3Q
    UK : amzn.to/3v3RHbU
    ------Chapters----
    00:00 - Introduction
    00:39 - Creating Application
    01:25 - Code Walkthrough
    02:04 - Prometheus Configuration
    02:27 - Starting Application
    02:40 - Understanding Prometheus Metrics Endpoint
    03:30 - Prometheus Docker Compose Configuration
    04:20 - Understanding Prometheus Configuration
    05:40 - Understanding Node Exporter
    06:10 - Starting Prometheus Docker Compose
    06:32 - Using Prometheus Interface
    06:42 - Understanding Prometheus Use
    08:04 - Grafana Docker Compose Configuration
    08:40 - Starting Grafana Docker Compose
    09:11 - Adding Prometheus Data Source
    09:35 - Creating Grafana Dashboard
    09:45 - Creating and Understanding Grafana Query
    10:28 - Creating Grafana DashBoard with Log Query
    11:55 - Grafana Rate Query
    13:05 - Full Fledged Spring Boot DashBoard
    14:22 - Conclusion
    Music Credits:-
    Sappheiros - Rain
    ----------------------------
    / rain1
    Social Media
    TH-cam / sappheiros
    Spotify goo.gl/hE9MDJ
    Twitter SappheirosMusic
    Instagram sappheirosmusic
    Facebook SappheirosMusic
    Discord discord.gg/Pk87yN9
    ----------------------------------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 27

  • @riteshlenka6871
    @riteshlenka6871 2 ปีที่แล้ว +2

    Please keep uploading these type of very informative video. you deserve more subs. Thanks God, I found your channel.

  • @yogeshkatkar2857
    @yogeshkatkar2857 9 หลายเดือนก่อน

    Great video for starting with spring-boot, prometheus and grafana integration

  • @RANKAPADI
    @RANKAPADI ปีที่แล้ว

    Very nicely explained... Keep on sharing your valuable knowledge...

  • @blessycheriyan5870
    @blessycheriyan5870 ปีที่แล้ว

    its very interesting topics, I tried and its working fine in my case anyway thank you for uploading such valuable & informative session ,waiting for further videos ,Still waiting

  • @khadijakaimous656
    @khadijakaimous656 ปีที่แล้ว

    Amazing explanation keep going

  • @dautofreitas8318
    @dautofreitas8318 หลายเดือนก่อน

    Thank you, excellent video.

  • @buntykumar7270
    @buntykumar7270 5 หลายเดือนก่อน

    Very informative video

  • @jessepinkman725
    @jessepinkman725 2 ปีที่แล้ว +1

    Awesome

  • @MdZakaria-dd8mh
    @MdZakaria-dd8mh ปีที่แล้ว

    Hi Sir, Great Video learnt a lot from it. Need a help , getting error while connect prometheus with grafana Error message: "Error reading Prometheus: An error occurred within the plugin"

  • @saidmzee4107
    @saidmzee4107 หลายเดือนก่อน

    hello how can I make prometheus to not include its requests on the total number of requests made to the application, to only scrape the requests that have hit the application endpoints and not /actuator/prometheus

  • @cooltechie2193
    @cooltechie2193 หลายเดือนก่อน

    Can u guide me how to monitor rmq using prometheus and grafana

  • @ahmadkabeer8275
    @ahmadkabeer8275 ปีที่แล้ว +1

    Please provide the project git url?

  • @sirojiddingroup
    @sirojiddingroup ปีที่แล้ว

    why didn't show this data directory wwhich is the create

  • @user-dj8lr9ig1b
    @user-dj8lr9ig1b ปีที่แล้ว

    I followed the configurations, but when I hit /actuator/prometheus it is just a blank page.... I checked that I have the dependencies needed

    • @RefactorFirst
      @RefactorFirst  ปีที่แล้ว

      Can you download my project and try?

  • @rakeshav9098
    @rakeshav9098 11 หลายเดือนก่อน

    Hi, Actually docker compose up is keep running more than two hours for this prometheus and grafana. do i have to stop and run again or can i wait till the docker compose command completes. please confirm. Thanks in advance for your support. - Rakesh

    • @RefactorFirst
      @RefactorFirst  11 หลายเดือนก่อน +1

      The docker compose command is to run the docker images. You have to make them stop running with the command docker compose down.

    • @rakeshav9098
      @rakeshav9098 11 หลายเดือนก่อน

      any help on this would be greatly appreciated. Please help

    • @RefactorFirst
      @RefactorFirst  11 หลายเดือนก่อน

      I gave you the command to run. Its docker compose down.

    • @rakeshav9098
      @rakeshav9098 10 หลายเดือนก่อน

      @@RefactorFirst sir.. thank you.. i have implemented the same without docker by installing prometheus and grafana in local system

  • @ashutoxh
    @ashutoxh ปีที่แล้ว

    Your discord invite has expired, I am facing issues with prometheus.

    • @RefactorFirst
      @RefactorFirst  ปีที่แล้ว +1

      I don't have a discord server..

    • @ashutoxh
      @ashutoxh ปีที่แล้ว

      @@RefactorFirst Oh, my bad. I misread the description.

  • @Romigo4
    @Romigo4 ปีที่แล้ว

    Hello, thanks for the video.
    Actually I cloned your repository and found out some issue.
    You have in prometheus.yml a target as
    - job_name: 'Spring Boot Application input'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 2s
    static_configs:
    - targets: ['localhost:8000']
    but the default port of a spring boot application is 8080 ?
    and nonetheless I can't see any app or instance in grafana ? Even if I changed the port in targets to 8080 ?

    • @RefactorFirst
      @RefactorFirst  ปีที่แล้ว

      I fixed the prometheus config now to reflect the correct URL. Thanks for this. Regarding the data not avaiable, have you configured prometheus datasource in grafana?