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
---------------------------------------------------------- - วิทยาศาสตร์และเทคโนโลยี
Please keep uploading these type of very informative video. you deserve more subs. Thanks God, I found your channel.
Great video for starting with spring-boot, prometheus and grafana integration
Very nicely explained... Keep on sharing your valuable knowledge...
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
Amazing explanation keep going
Thank you, excellent video.
Very informative video
Awesome
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"
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
Can u guide me how to monitor rmq using prometheus and grafana
Please provide the project git url?
why didn't show this data directory wwhich is the create
I followed the configurations, but when I hit /actuator/prometheus it is just a blank page.... I checked that I have the dependencies needed
Can you download my project and try?
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
The docker compose command is to run the docker images. You have to make them stop running with the command docker compose down.
any help on this would be greatly appreciated. Please help
I gave you the command to run. Its docker compose down.
@@RefactorFirst sir.. thank you.. i have implemented the same without docker by installing prometheus and grafana in local system
Your discord invite has expired, I am facing issues with prometheus.
I don't have a discord server..
@@RefactorFirst Oh, my bad. I misread the description.
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 ?
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?