Kubernetes Monitoring Made Easy with Prometheus | KodeKloud
Vložit
- čas přidán 16. 05. 2024
- Access the Labs: kode.wiki/PrometheusLabs_YT
In this video, we'll cover everything you need to know about monitoring your Kubernetes cluster using Prometheus. We'll start by discussing what Kubernetes monitoring is and why it's important. From there, we'll dive into the details of how Prometheus works and how it can be used to monitor your Kubernetes environment. You'll learn about the various metrics and alerts that Prometheus provides, as well as best practices for setting up and configuring Prometheus for Kubernetes monitoring. Whether you're new to Kubernetes monitoring or an experienced pro, this video will give you the knowledge you need to effectively monitor your Kubernetes environment with Prometheus. So, join us and learn how to simplify your Kubernetes monitoring with Prometheus!
These are the topics covered in this video:
00:00 - Introduction
01:45 - Kubernetes Monitoring using Prometheus
07:00 - Access Free Labs
07:24 - What is Helm?
13:24 - Installing Helm & Prometheus Chart
37:21 - Deploy Demo Application
43:05 - Additional Scrape Configs
46:15 - Service Monitors
56:44 - Adding Rules
59:41 - Alert manager Rules
01:07:29 - Conclusion
Want to view a clear path to becoming a DevOps Engineer? Visit our website - bit.ly/Kodekloud-YT
We have various Learning Paths to help you choose your next step and shape your DevOps Career.
Check out our learning paths at KodeKloud to get started:
► Linux: bit.ly/LinuxLearningPath
► DevOps Learning Path: bit.ly/DevOpsLearningPath-YT
► Docker: bit.ly/DockerLearningPath
► Kubernetes: bit.ly/KubernetesLearningPath
► Infrastructure as Code(IAC): bit.ly/IACLearningPath
► Programming: bit.ly/ProgrammingLearningPath
#Kubernetes #prometheus #devops
Those new to the Programming and DevOps world often find it challenging to start their journey due to the missing basic prerequisites. For example, issues with setting up a basic lab environment using VirtualBox, problems with networking, or trouble with working with the Linux CLI or text editors like vi editor. Sometimes there are issues with applications - like getting a sample application to work, problems with getting the dependencies to install correctly or trouble with getting a web server to communicate with a database server. Or, at other times, it's working with data formats like JSON or YAML.
So we have identified a gap, and we believe that this is due to missing some of the basic prerequisites, such as knowing the basics of Linux, the basics of tools like VirtualBox, or knowing the basics of the most commonly used applications like Java, Python or NodeJS or web servers like Apache, NGINX etc. As a DevOps or Cloud Engineer, it is crucial to have these basics cleared. And that’s why we are helping you to bridge that gap!
For more updates on courses and tips, follow us on:
► Website: kodekloud.com/
► LinkedIn: / kode. .
► Twitter: / kodekloud1
► Facebook: / kodekloudtra. .
► Instagram: / kodekloud
► Blog: kodekloud.com/blog/ - Zábava
This is a golden video. I have read articles, blogs and documentation and this video has it all!
This was a perfect refresher even for someone using Prometheus for years.
Thanks for watching our video and commending our work. Do subscribe to our channel and stay tuned for more. Cheers!
Amazing, Amazing, Amazing!!! I went through alot of videos on youtube and udemy but this video answered almost all of my questions i had on prometheus. Thank you for making such wonderful video.
by far the best guide I've seen - been struggling for a few days and this solved my problems in an hour!!!
Great topic. Observability is truly an important piece of the puzzle for applications running in production.
In the first 7 minutes, at the moment a point is presented, my questions in my head has been answered. This is a nicely done video. Thank you very much.
Glad it was helpful!
Sanjeev, your DevOps videos have been an incredible source of knowledge and inspiration for me. Thank you for your dedication and expertise in sharing valuable insights. You are definitely one of the best instructors i follow, Keep up the fantastic work!
You definitely need a lots of love and gratitude for all the work that you have done for us. How nicely you have presented the topics. I was struggling to learn the topics in no time and your video was the best shot that I made. Easy to understand the concepts. 🥰
Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
Very informative !! Thank you for the effort you put into making this
Excellent Explanation ❤
Great Lecture.. Crystal clear explanation
Glad it was helpful!
Hi Sanjeev Ty for taking the put together a concise course on a tough topic. Ty sir…Absolutely awesome.🎉
Most welcome!
Excellent . Thank You . Would have loved some more deep dive on the alert manager part . But really helpful .
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
This was really helpful. Thanks
You're welcome!
I just want to say thank you. This is really helpful.
Glad it was helpful!
Excellent. However, one quick question. Where would be best option to enable grafana? either it could be in kube-prometheus-stack or loki-stack?
Thanks for the great video, which is very helpful for me. There is a minor issue at 13:06 of this video during prometheus installation. It is adding "Prometheus-community" to the helm-chart, while it is using "prometheus-community" on the helm installation command.
Thank you so much for bringing this to our attention. We reported this right away to the relevant department.
Excellent video, keep it up bro
Excellent video and very nicely presented... thank you so much for valuable content.... can you please do one additional video to cover remotewrite with AWS AMP using same stack/chart
"Hey, thank you for watching our video. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)
"
Wonderful content.. thanks..
Most welcome!
Hi, thank you for the helpful video. I did every steps but in Prometheus I can't see my target. Do you know what is the problem?
excellent demo , really hats off to you
Thank you for the appreciation. You can check our videos related to DevOps and subscribe to our channel to stay updated with all the latest tools.
Could you please share the Nodejs application code that you have used for this video?
Thanks for the video. I have one doubt. Without helm how can we integrate Prometheus and grafana via azure pipelines.
Awesome !! a great demo
Glad you liked it!
Awesome thank you very much.
You're very welcome!
Excellent
Thank you! Cheers!
Excellent demo, just curious, what theme are you using for your VScode? looks great and is friendly to code on. Keep up the amazing work!
Thank you for watching our videos, and making us a part of your growth. Your kind words, comments and support is what keeps us going every day! Hit the bell icon to never miss out on our content.
@@KodeKloud Hi if not secret what theme are you using for your VScode from this video?
Dracula is the theme being used
@@TheCrankyhenk thanks
@@KodeKloud i
AWESOME.. AWESOME
Thank you! Cheers!
did you deploy the cluster before installing the helm chart?
Yes, you need to have a cluster k8s and then configure Kubectl client correctly with your cluster before installing the application with helm
Hi, I was wondering if we can use custom endpoints as per our choice in our application because you only mentioned /swagger-stats/metrics as an endpoint and there is no code to for this setup. Please let me know how to expose endpoints in our deployment of customized applications.
Swagger-stats is a library and middleware for monitoring and collecting statistics from APIs built with the Swagger/OpenAPI specification. It provides detailed insights and metrics about API performance, usage patterns, errors, and more. Swagger-stats integrates with the Swagger specification and can be used with different frameworks and languages. So you only need to confgiure swagger-stats path. You can refer more to swaggerstats.io/
Thanks for the tutoring. I was looking for Custom Notifications with Alert Manager’s Webhook Receiver in Kubernetes. I looked at your channel I couldn't find it. Have you created a tutorial about Custom Notifications with Alert Manager’s Webhook Receiver in Kubernetes? Thanks again.
Hello, we are glad you found our video helpful. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)
Thanks looking forward to it@@KodeKloud
Hello Sanjee, thank you for this video. I would like ask you two questions: 1. Which some CRDs are disable by default and its must be enable across values chart; all the prometheus version this is equal? and the second question; which is the difference between AlertManager and AlertManagerConfig?
You can check CRDs in values.yaml. As for AlertManager and AlertManagerConfig: AlertManager is a component of Prometheus responsible for handling alerts, including deduplication, grouping, and routing to receivers like email or Slack. On the other hand, AlertManagerConfig is a CRD in Kubernetes that provides a Kubernetes-native way to configure AlertManager, allowing you to specify alert routing, and receivers, and inhibit rules directly as Kubernetes resources.
Nice video, thx for all but i'd like to know where did you do all these diagrams. Thx in advance! :D
Greetings! Thank you for your kind words. Spread the word by liking, sharing and subscribing to our channel! Cheers :).
Just to clear some doubt, In production environment, is it not a good practice to have Prometheus instance both running on a separate server and in the k8s cluster should in case the cluster go down then you can have something to look out to know what really caused that?
Hey, it depends on the demand and resources. If you have multiple clusters of Kubernetes and you want centralized management, you should deploy Prometheus separately. On the opposite, you only have a cluster with 3 Nodes (1 Master, 2 Workers), you will want to deploy Prometheus inside the Kubernetes cluster.
@@KodeKloud I have multiple k8s clusters and management cluster to deploy applications like argocd. Is it recommended deploying a centralized Prometheus operator on the management cluster or in each of the cluster ? Any recommendation/ best practice to follow for this scenario ?
Awesome
Thanks for watching our video. Cheers!
Do you have full manifest for web app?
can you please share the repo of the application you deployed in the video
really good demo , where can i get access to the slides that you used for this course thanks
Thanks for appreciating our work.
Please accept our apologies for not being able to share the slides.
how to define pvc for timescaledb for prometheus?
Hey, please refer to this link: github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#persistent-volumes
Will it also help to monitor the kubernetes cert expiration ?
Hey you can refer to this link: github.com/amimof/node-cert-exporter
Can you pls share the source code link for the demo project you deployed
Guys, where is a code for demo application?
@KodeKloud after adding the rule its not visble in the ui of prometheus
"If a rule you added to Prometheus is not visible in the UI:
- Check rule syntax and configuration.
- Trigger a Prometheus configuration reload.
- Verify the rule file path in Prometheus config.
- Refresh the Prometheus UI."
@@KodeKloud sir based wat histogram values are used
how to add ingressRoute traefik-ingress?
You can configure the ingress here:
Prometheus: github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L2535
Grafana: github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L783
AlertManager: github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L261
18:30
Thanks for watching our video. Cheers!
Dude, this is awesome, but break it apart into smaller sessions.
Thank you for watching our videos, and making us a part of your growth. Your kind words, comments and support is what keeps us going every day! Hit the bell icon to never miss out on our content.