@@AbhishekVeeramalla Hi Abhishek for timestamp 38:42 is the command this kubectl exec -it prometheus-kube-state-metrics -- curl localhost:portnumber/metrics ? but i receive the below error kindly help me. OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown command terminated with exit code 126
Hey Abhishek your videos are really amazing ,you are the only person explaining perfectly each and every concept that are useful in devops journey , even in the paid tutorials they I'll just explain the installation basic stuff , really appreciate you for your free videos ,coz your videos are the perfect answer for lot ppl who want to pursue devops and not sure how to proceed further I'll highly recommend for every one to follow your videos to explore in devops .
@@AbhishekVeeramalla first of all thanks for all these detailed vedios. It would be helpful if you could make a vedio on Kloudfuse too. Working on a requirement where we have to migrate the existing dashboards from Grafana to Kloudfuse.
Great Content. After installing Grafana and adding Prometheus as a data source, if needed, we can also view the default query directly from the panel menu: Click on the three dots in the top right corner of the panel. Select 'Edit.' In the 'Metrics browser ' section, contains the query used for retrieving the data.
Crystal clear explanation. .Sir. Haven't seen someone who explains to this extent. Thank you very much Sir.. for making our daily work understandable and easy..GurudevoBhava🙏
Hi Abhishek, I hope you are doing well. I wanted to request you to create separate video on Prometheus and Grafana to integrate Prometheus metrics into the Node.js backend and use client libraries to expose custom metrics like API response times, request counts, and error rates. Thanks!
So many hiccups while trying to get the Prometheus, Grafana and Kube-State-Metrics to open up in a browser. Finally, after different ways of solving it, I completed this session successfully. Thankyou for this session Abhishek. Learnt a lot from this one.
After exposing the cluster via a NodePort, I am unable to access the application from outside the cluster, such as opening it in a browser. I am using Windows 11 Home Edition with Docker Desktop as the driver. I have encountered this issue since services class. I kindly request your assistance with resolving this matter. @AbhishekVeeramalla
It is more clear than 9 hrs udemy vdo. If you created 2nd part of this vdo.. please provide link in this vdo itself . You have explain what really a new developer needs. Very understandable.
@@AbhishekVeeramalla Hi Abhishek i wanted to know what is helm and why helm? and what is helm chart? any video related to it? Also after we edit the config map how do we check the data within the container i tried kubectl exec it < pod-name> - /bin/bash but it throwed an error, could please help me here
Hi Abhishek, Can you please do one video for realtime k8s stage and production deployment? when ever you have free time. It will be very helpful for crack the interviews. Really appreciate your work Abhishek...😊
Hi Abhishek, Devops zero to the hero series was quite epic....I learned a lot of things.... Growing in confidence...Thanks for all efforts 🙏🙏...In K8s, Can you make a dedicated video for Helm charts , used cases and practical sessions to understand it in a better way😊
00:04 Learn about Kubernetes monitoring using Prometheus and Grafana 02:02 Monitoring Kubernetes clusters using Prometheus and Grafana 06:09 Prometheus stores metrics in a time series database and has a built-in monitoring system. 08:10 Prometheus and Grafana provide monitoring and visualization for Kubernetes 12:18 Installing Prometheus using Helm 14:35 Install Prometheus controller and required configurations using Helm 18:41 Exposing the Prometheus server UI 20:46 Prometheus can be installed on a Kubernetes cluster to collect and query metrics. 24:47 Exposing Grafana using Node Port mode 27:00 Setting up Prometheus and Grafana for Kubernetes monitoring 31:01 Standard template (ID: 3662) in Grafana provides information about Kubernetes cluster 32:53 Using Cube State Matrix to get detailed information about the Kubernetes service 37:01 Expose the cube State metrics and configure Prometheus to scrape data from a specific endpoint 39:03 Monitoring applications in Kubernetes using Prometheus and Grafana
Very good in detail explanation...easy to understand each and every thing about monitoring the application by using prometheus and grafana. Thanks #abhishekveeramall🤝🤝🤝
Hey abishek, just continue another video on Prometheus like Create a basic application in kubernetes like production environment. monitor the application trigger some basics alerts in the alert manager. This will be very much helpful for all
great job, stopping and listening I am working on it, but slightly faster, some places you will touch but again you will push that will explain later. Even though I expose the prometheus and the grafana but I couldnt expose, might be becoz I was working on the ubuntu and then trying to open on the windows browser, as I do not have the internet on the ubuntu side, thx
Your Training Explains What How Why aspects of concepts. awesome. Will you able to upload some training/insight on Helm Chart, Azure Dev Ops and Azure Dev Ops Developer certification(AZ204).
Hey, the video was very instructive. Can you please share your thoughts on how to keep the grafana data sources and dashboard stored and mounted along with the grafana pods? Setting up this by the UI is a good way to start, but I wonder if there is an easy way to recover it when the pods get recreated (in case of error or shutting down the cluster, for instance). Thanks
Hey Abhishek the session was really insightful and loved the way you explained the things will be waiting for further video where we get to see the creation of the metric server and adding it to the config map file of prometheus server !
It's really an informative tutorial. I have a small doubt 😊 Suppose,if the Prometheus installed outside the kubernetes cluster, what all the steps we need to do for the k8s monitoring.
Hey Abhishek, thanks for explaining all these installation processes in detail, just one doubt, if we are using AKS cluster, which IP can I use while port forwarding Prometheus????
Thanks for the wonderful session Abhishek. I have 2 queries Abhishek 1. If you're installing Minikube on your aws Ubuntu Ec2 instance , what will be the default driver you should take like Docker or another one ? 2. What type of Instance like t2 micro or medium required for installing this minikube and run your kubectl services. Thank you
Hi .. Minikube can run on AWS .. no doubts but your free instance has very less resources. So may be you should go with medium or any other size but that will incur some costs.
Thanks for your all your effort’s How to resolve the Prometheus OOM kill issue ? If we deployed kube Prometheus stack in our k8’s cluster And it is possible for volume expansion dynamically ? If volume has full with 90% like that Just give me some hints Anna ?
In managed kubernetes like aks,eks,gks, there is everything managed by providers like scaling in pod level,node level,and even cluster also scaling and managed by providers right so out of all things why we need monitoring particularly on managed kubernetes architecture. Could explain that, this question i faced from the interviewer. What are things we have to do using monitoring tools like Prometheus or grafana.
Tools like Prometheus and Grafana provide the capabilities needed to collect, visualize, and act on key metrics, allowing you to maintain operational visibility and proactive management of your Kubernetes environment.
**Summary: Day 42 | Kubernetes Monitoring Using Prometheus & Grafana** --- **Chapter 1: Introduction to Kubernetes Monitoring (**00:02** - **00:59**)** - Abhishek introduces the session as part of a DevOps course (Day 42). - Focus: Kubernetes monitoring using **Prometheus** and **Grafana**. - A GitHub repository with installation steps is available for practical use. - Future enhancements to the repository will include advanced topics like writing a custom metric server. --- **Chapter 2: Overview of Monitoring Tools (**01:00** - **06:36**)** - **Why Monitoring is Required**: - Crucial for scaling Kubernetes clusters across multiple environments (Dev, Staging, Production). - Helps debug issues like service inaccessibility or deployment failures. - **Prometheus**: - An open-source tool for metrics collection and alerting. - Integrates seamlessly with Kubernetes' API server to fetch default metrics. - Stores data in a **time-series database**. - **Grafana**: - Provides visualization for Prometheus data. - Supports various data sources, including Prometheus. - **Architecture Overview**: - Prometheus server collects data from Kubernetes API server and other sources. - Supports alerting via AlertManager (e.g., Slack, email). - Offers PromQL for querying metrics. - Grafana visualizes Prometheus data for user-friendly dashboards. --- **Chapter 3: Setting Up Minikube Cluster (**06:37** - **11:51**)** - Abhishek uses **Minikube** to create a Kubernetes cluster: - Command: `minikube start --memory 4GB --driver hyperkit`. - Alternative drivers like Docker or VirtualBox can be used based on user preferences. - Minikube simplifies local development and testing for resource-intensive setups. --- **Chapter 4: Installing Prometheus (**11:52** - **17:07**)** - **Installation via Helm**: - Helm chart for Prometheus added and updated. - Command: `helm install prometheus prometheus-community/prometheus`. - Prometheus components verified using `kubectl get pods` and `kubectl get svc`. - Key components explained: - **Prometheus Server**: Collects and stores metrics. - **Cube State Metrics**: Adds additional Kubernetes metrics beyond the default API server metrics. --- **Chapter 5: Exposing Prometheus (**17:08** - **23:28**)** - Service exposed using `kubectl expose` for NodePort access. - Accessed via browser at `:` to explore Prometheus UI. - PromQL queries demonstrated for retrieving metrics. - Example: Metrics from custom endpoints can be configured for additional insights. --- **Chapter 6: Installing Grafana (**23:29** - **27:35**)** - Grafana installed using its Helm chart. - Default login credentials retrieved via: - `kubectl get secret grafana-admin-password`. - Grafana exposed using NodePort for browser access. --- **Chapter 7: Integrating Prometheus with Grafana (**27:36** - **29:49**)** - Prometheus added as a data source in Grafana. - Grafana dashboard imported using template ID `3662` for predefined Kubernetes metrics. - Metrics visualized include API server status, node health, and uptime. --- **Chapter 8: Cube State Metrics Integration (**29:50** - **36:48**)** - **Cube State Metrics**: - Provides detailed Kubernetes resource metrics like deployments and replica statuses. - Exposed via NodePort for access at `:/metrics`. - Prometheus config updated to scrape Cube State Metrics: - Config Map edited to include new scrape targets. --- **Chapter 9: Monitoring Custom Applications (**36:49** - **40:11**)** - Developers can expose application-specific metrics using Prometheus libraries. - Prometheus Config Map updated to scrape custom metric endpoints. - Benefits include tracking application health and custom business metrics. --- **Chapter 10: Conclusion and Resources (**40:12** - **41:05**)** - Steps detailed in the GitHub repository shared by Abhishek. - Encouragement to try the setup and provide feedback. - Promises further advanced content in future videos. --- **Model Stats**: - Input Tokens: 8,704 - Output Tokens: 792
21:05 Prometheus learnings Error: if we use docker as driver on linux, we unable to access the prometheus even after exposing the service type as nodeport. Solution: used command “ minikube service prometheus-server-ext “ which provided url as output to access the prometheus. Because when using docker driver on linux, the terminal needs to be open to run it. Once you stop the tunnel for service. It won’t be able to access. it is better to use virtual box(windows)/ hyperkit(mac) as driver for minikube to access prometheus
Thanks for the great session Could you please help me on below. If we have 15 AKS/EKS, then 1. Do we need to install the Prometheus agent on 15 AKS/EKS as a pod via helm? OR 2. Does Prometheus need to be installed on a single EC2/VM & Prometheus will pull the metrics from AKS/EKS?
Hi Abishek great video. Good explaination. I have one doubt what if dev team wont agree for writing metrics. is there any altenative? or we can use node exporter for application?
Abhishek nodeport use krte h jb to minikubeip:port pe terminal se access ho jati h application. But browser se ni hoti access . Browser pe bhi honi chahiye na?? But localhost:port pe ho rha access instead of minikube ip🙃 (practising on local with Ubuntu lts)
Hi @Abhi, Lets assume if Prometheus is on ClusterIP mode, will Grafana get the Metrics..? As per my understanding Nodeport Configuration is just for accessing Prometheus on Browser. Correct me if i'm wrong.
Bro, There are No correct videos available to connect the Prometheus to trigger alerts to slack or email. Can you please do video on Alert Manager? It helps a lot to so many people.
Mama...tune toh phoddaali...kya dhaansu video daala baap...shabaash...jite re putra...boletoh ek dam awesome...🎉😂🎉😂🎉😂
😅😍😍
@@AbhishekVeeramalla Hi Abhishek for timestamp 38:42 is the command this kubectl exec -it prometheus-kube-state-metrics -- curl localhost:portnumber/metrics ? but i receive the below error kindly help me.
OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown command terminated with exit code 126
😂😂😂😂
This kind of awesome contents expected from Abhishek bhai only . I don't know why I memorize well post viewing your content only ❤😊
@@AbhishekVeeramalla hindi me banaya kero yr video
No one else can explain like you , you are just flawless , I listen to your videos day and night .Its gem
Thank you so much 😀
Hey Abhishek your videos are really amazing ,you are the only person explaining perfectly each and every concept that are useful in devops journey , even in the paid tutorials they I'll just explain the installation basic stuff , really appreciate you for your free videos ,coz your videos are the perfect answer for lot ppl who want to pursue devops and not sure how to proceed further I'll highly recommend for every one to follow your videos to explore in devops .
Thanks alot Jayasree .. Really appreciate 🙏 .. and yeah, please share the channel in your groups
@@AbhishekVeeramalla first of all thanks for all these detailed vedios. It would be helpful if you could make a vedio on Kloudfuse too. Working on a requirement where we have to migrate the existing dashboards from Grafana to Kloudfuse.
Well explained ❤❤❤ All udemy , all TH-cam channel fir k8s , All paid contents < abhishek veermalla free content (one man army)
Thanks alot Akash 🙏 .. Please share the channel with friends and groups ☺️
I'm working as a performance testing engineer using JMETER tool , I want to learn Grafana monitoring tool , pls help and share video
Great Content.
After installing Grafana and adding Prometheus as a data source, if needed, we can also view the default query directly from the panel menu:
Click on the three dots in the top right corner of the panel.
Select 'Edit.'
In the 'Metrics browser ' section, contains the query used for retrieving the data.
Great suggestion!
You explain very well and I have zero knowledge on Grafana before the watch video and now getting confidence and it is useful to us Thank you 🎉🎉🎉🎉🎉🎉🎉
Glad to hear that
Crystal clear explanation. .Sir. Haven't seen someone who explains to this extent. Thank you very much Sir.. for making our daily work understandable and easy..GurudevoBhava🙏
Excellent Session specially on Grafana/Prometheus with k8s. Superb.....Superb....
Glad you enjoyed it
Annnaaaaaa you are God!!!!! Understood in one go!!! More power to you to make more videos like this😊😊😊
Successfully performed the demo end to end. Thank you Abhishek for the great content.
@Abhishek, I am learning everyday new skill because of you. Thanks for this excellent video.
Thanks alot 🙏.. Please share the channel with in your groups.
Thats simply amazing sir Veeramalla , i just get the deep understanding of monitoring server in DevOps.
Thank You
So Beautifull lecture about Kubernetes and monitoring Grafana Server 😍😍😍😍😍😍😍😍😍😍😍😍😍
Every time i watch your videos , i got some sort of confidnce.. As usual your are awesome and kudos to your work abhishek.
Hi Abhishek, I hope you are doing well. I wanted to request you to create separate video on Prometheus and Grafana to integrate Prometheus metrics into the Node.js backend and use client libraries to expose custom metrics like API response times, request counts, and error rates. Thanks!
I am able to follow and implement this practical session. Thanks Abhishek for helping us to learn and implement.
Awesome
best videos on kubernetes. I have purchased course on udemy but still i can say you are the best @Abhishek
😍
Thanks for explaining in detail each and every point Bro..Getting confidence from ur videos.
Thank you Abishek giving such a clear cut explanation
Thanks a lot
Wow what a presentation and really awesome and added a great value..Thanks
Most welcome !!
Thanks a lot Abhishek, Instead going to Udemy, Very nice video for complete configuration
You are most welcome
So many hiccups while trying to get the Prometheus, Grafana and Kube-State-Metrics to open up in a browser. Finally, after different ways of solving it, I completed this session successfully. Thankyou for this session Abhishek. Learnt a lot from this one.
🚀
am not able to open the prometheus web ui in browser after installation, can you please help.
Same issue
Abhi sir plz guide
After exposing the cluster via a NodePort, I am unable to access the application from outside the cluster, such as opening it in a browser. I am using Windows 11 Home Edition with Docker Desktop as the driver. I have encountered this issue since services class. I kindly request your assistance with resolving this matter. @AbhishekVeeramalla
Great Share Abhishek! Just 3more videos to complete this series. Having an Interview scheduled on coming Wed for DevOps Intern.
Best of luck!
It is more clear than 9 hrs udemy vdo. If you created 2nd part of this vdo.. please provide link in this vdo itself . You have explain what really a new developer needs. Very understandable.
You're very welcome!
Wow Brilliant for even a Tech Arch with 16 years
😀
Hi Abhishek, really appreciate your work. The presentation and explanation of the concepts are really good. Keep up the good work.
Thanks a lot
Abhishek Bro, Thanks for your dedicated video.
Welcome
Very clearly explained thanks much for your videos
Welcome
Well done sir. Thanks for this wonderful support & explanation. Big up to you
Thank you
@@AbhishekVeeramalla Hi Abhishek i wanted to know what is helm and why helm? and what is helm chart? any video related to it? Also after we edit the config map how do we check the data within the container i tried kubectl exec it < pod-name> - /bin/bash but it throwed an error, could please help me here
Hi Abhishek, Can you please do one video for realtime k8s stage and production deployment? when ever you have free time. It will be very helpful for crack the interviews.
Really appreciate your work Abhishek...😊
Sure, noted
Thanks this tutorial help me doing my job.
Most welcome
Waiting for this video, after you announcement 😉, thanks for the video
Welcome
Hi Abhishek, Devops zero to the hero series was quite epic....I learned a lot of things.... Growing in confidence...Thanks for all efforts 🙏🙏...In K8s, Can you make a dedicated video for Helm charts , used cases and practical sessions to understand it in a better way😊
Glad to hear that
I am waiting this video. Please make more video sir Prometheus and grafana
Sure
Awesomely Explained
Thanks
Well done mate, good explanation, very helpful!!
Glad you liked it!
Glad you liked it!
00:04 Learn about Kubernetes monitoring using Prometheus and Grafana
02:02 Monitoring Kubernetes clusters using Prometheus and Grafana
06:09 Prometheus stores metrics in a time series database and has a built-in monitoring system.
08:10 Prometheus and Grafana provide monitoring and visualization for Kubernetes
12:18 Installing Prometheus using Helm
14:35 Install Prometheus controller and required configurations using Helm
18:41 Exposing the Prometheus server UI
20:46 Prometheus can be installed on a Kubernetes cluster to collect and query metrics.
24:47 Exposing Grafana using Node Port mode
27:00 Setting up Prometheus and Grafana for Kubernetes monitoring
31:01 Standard template (ID: 3662) in Grafana provides information about Kubernetes cluster
32:53 Using Cube State Matrix to get detailed information about the Kubernetes service
37:01 Expose the cube State metrics and configure Prometheus to scrape data from a specific endpoint
39:03 Monitoring applications in Kubernetes using Prometheus and Grafana
Great explaination with Lab. Thanks a lot :)
Good session
Thanks
Very good in detail explanation...easy to understand each and every thing about monitoring the application by using prometheus and grafana. Thanks #abhishekveeramall🤝🤝🤝
Thanks !!
Hey abishek, just continue another video on Prometheus like Create a basic application in kubernetes like production environment. monitor the application trigger some basics alerts in the alert manager. This will be very much helpful for all
Sure I will
Great Thanks to You Man♥️Thanks again Bhaiya ♥️
Welcome
thank you sir, love from Punjab
great job, stopping and listening I am working on it, but slightly faster, some places you will touch but again you will push that will explain later. Even though I expose the prometheus and the grafana but I couldnt expose, might be becoz I was working on the ubuntu and then trying to open on the windows browser, as I do not have the internet on the ubuntu side, thx
How to install it without helm or minkube, try to explain it also on same steps.
Very thankful for such informative videos
Helm is the most simple way.
Your Training Explains What How Why aspects of concepts. awesome. Will you able to upload some training/insight on Helm Chart, Azure Dev Ops and Azure Dev Ops Developer certification(AZ204).
Complete azure is available in azure zero to hero
Amazing explanation 🙌
Fanstastic Session, day 42 Done✌
such a great video as always! Love your channell and your personality Abhishek!
excellent content, my good sir
Super content bro 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Thank you so much 😀
thank you, perfectly explained. thanks a lot brother
Hi bro, u doing awesome job , kindly do videos on Rancher for k8s as well on upcoming days. Mostly expected one.
Sure, I will try
Hey, the video was very instructive. Can you please share your thoughts on how to keep the grafana data sources and dashboard stored and mounted along with the grafana pods?
Setting up this by the UI is a good way to start, but I wonder if there is an easy way to recover it when the pods get recreated (in case of error or shutting down the cluster, for instance).
Thanks
Hey Abhishek the session was really insightful and loved the way you explained the things will be waiting for further video where we get to see the creation of the metric server and adding it to the config map file of prometheus server !
Thanks Abhishek the session was really good
It's really an informative tutorial. I have a small doubt 😊 Suppose,if the Prometheus installed outside the kubernetes cluster, what all the steps we need to do for the k8s monitoring.
Hi Abhishek. your videos are very helpful. Do you have any video on how to integrate Hashicorp Vault secrets with Kubernetes?
Yes .. I will plan
Hey Abhishek, thanks for explaining all these installation processes in detail, just one doubt, if we are using AKS cluster, which IP can I use while port forwarding Prometheus????
Nice Abhishek
Thanks alot
Hello Abhishek,
Can you also prepare a video on ELK setup and how we can use it in EKS?
Thanks for the wonderful session Abhishek. I have 2 queries Abhishek
1. If you're installing Minikube on your aws Ubuntu Ec2 instance , what will be the default driver you should take like Docker or another one ?
2. What type of Instance like t2 micro or medium required for installing this minikube and run your kubectl services.
Thank you
Hi .. Minikube can run on AWS .. no doubts but your free instance has very less resources. So may be you should go with medium or any other size but that will incur some costs.
Thanks abhishek, really your work is so much appreciated and will be grateful for your help 🙏
Abhishek , what about that 1st one docker driver is enough to run minikube right?
It’s very informative. Is there a references with example on using helm to install Dynatrace one agent on the GCP GKE auto pilot cluster?
hi @AbhishekVeeramalla
Need to understand on the other two pods, push gateway and node exporter which are coming up as a part of helm installation
@abhishek sir please cover the topic container n/w interfaces(CNI) in kubernetes like flannel and calico
Sure, I will try
Bro can you please make it a full video of kubernetes. It will help us to learn concept wise. Please share isto as well.
Please follow the playlist DevOps Zero to Zero from Day 31
Super se uper
Thanks
Thanks for your all your effort’s
How to resolve the Prometheus OOM kill issue ?
If we deployed kube Prometheus stack in our k8’s cluster
And it is possible for volume expansion dynamically ? If volume has full with 90% like that
Just give me some hints Anna ?
In managed kubernetes like aks,eks,gks, there is everything managed by providers like scaling in pod level,node level,and even cluster also scaling and managed by providers right so out of all things why we need monitoring particularly on managed kubernetes architecture. Could explain that, this question i faced from the interviewer. What are things we have to do using monitoring tools like Prometheus or grafana.
Tools like Prometheus and Grafana provide the capabilities needed to collect, visualize, and act on key metrics, allowing you to maintain operational visibility and proactive management of your Kubernetes environment.
Thanks, a lor for your useful videos. in our production, we're using thanos along with Prometheus. can you plz explain the purpose of using thanos?
Checking in for Day 41
**Summary: Day 42 | Kubernetes Monitoring Using Prometheus & Grafana**
---
**Chapter 1: Introduction to Kubernetes Monitoring (**00:02** - **00:59**)**
- Abhishek introduces the session as part of a DevOps course (Day 42).
- Focus: Kubernetes monitoring using **Prometheus** and **Grafana**.
- A GitHub repository with installation steps is available for practical use.
- Future enhancements to the repository will include advanced topics like writing a custom metric server.
---
**Chapter 2: Overview of Monitoring Tools (**01:00** - **06:36**)**
- **Why Monitoring is Required**:
- Crucial for scaling Kubernetes clusters across multiple environments (Dev, Staging, Production).
- Helps debug issues like service inaccessibility or deployment failures.
- **Prometheus**:
- An open-source tool for metrics collection and alerting.
- Integrates seamlessly with Kubernetes' API server to fetch default metrics.
- Stores data in a **time-series database**.
- **Grafana**:
- Provides visualization for Prometheus data.
- Supports various data sources, including Prometheus.
- **Architecture Overview**:
- Prometheus server collects data from Kubernetes API server and other sources.
- Supports alerting via AlertManager (e.g., Slack, email).
- Offers PromQL for querying metrics.
- Grafana visualizes Prometheus data for user-friendly dashboards.
---
**Chapter 3: Setting Up Minikube Cluster (**06:37** - **11:51**)**
- Abhishek uses **Minikube** to create a Kubernetes cluster:
- Command: `minikube start --memory 4GB --driver hyperkit`.
- Alternative drivers like Docker or VirtualBox can be used based on user preferences.
- Minikube simplifies local development and testing for resource-intensive setups.
---
**Chapter 4: Installing Prometheus (**11:52** - **17:07**)**
- **Installation via Helm**:
- Helm chart for Prometheus added and updated.
- Command: `helm install prometheus prometheus-community/prometheus`.
- Prometheus components verified using `kubectl get pods` and `kubectl get svc`.
- Key components explained:
- **Prometheus Server**: Collects and stores metrics.
- **Cube State Metrics**: Adds additional Kubernetes metrics beyond the default API server metrics.
---
**Chapter 5: Exposing Prometheus (**17:08** - **23:28**)**
- Service exposed using `kubectl expose` for NodePort access.
- Accessed via browser at `:` to explore Prometheus UI.
- PromQL queries demonstrated for retrieving metrics.
- Example: Metrics from custom endpoints can be configured for additional insights.
---
**Chapter 6: Installing Grafana (**23:29** - **27:35**)**
- Grafana installed using its Helm chart.
- Default login credentials retrieved via:
- `kubectl get secret grafana-admin-password`.
- Grafana exposed using NodePort for browser access.
---
**Chapter 7: Integrating Prometheus with Grafana (**27:36** - **29:49**)**
- Prometheus added as a data source in Grafana.
- Grafana dashboard imported using template ID `3662` for predefined Kubernetes metrics.
- Metrics visualized include API server status, node health, and uptime.
---
**Chapter 8: Cube State Metrics Integration (**29:50** - **36:48**)**
- **Cube State Metrics**:
- Provides detailed Kubernetes resource metrics like deployments and replica statuses.
- Exposed via NodePort for access at `:/metrics`.
- Prometheus config updated to scrape Cube State Metrics:
- Config Map edited to include new scrape targets.
---
**Chapter 9: Monitoring Custom Applications (**36:49** - **40:11**)**
- Developers can expose application-specific metrics using Prometheus libraries.
- Prometheus Config Map updated to scrape custom metric endpoints.
- Benefits include tracking application health and custom business metrics.
---
**Chapter 10: Conclusion and Resources (**40:12** - **41:05**)**
- Steps detailed in the GitHub repository shared by Abhishek.
- Encouragement to try the setup and provide feedback.
- Promises further advanced content in future videos.
---
**Model Stats**:
- Input Tokens: 8,704
- Output Tokens: 792
21:05 Prometheus learnings
Error: if we use docker as driver on linux, we unable to access the prometheus even after exposing the service type as nodeport.
Solution: used command “ minikube service prometheus-server-ext “ which provided url as output to access the prometheus. Because when using docker driver on linux, the terminal needs to be open to run it.
Once you stop the tunnel for service. It won’t be able to access. it is better to use virtual box(windows)/ hyperkit(mac) as driver for minikube to access prometheus
thanks it worked
Thanks Abhishek.
welcome
Thanks for the great session Could you please help me on below.
If we have 15 AKS/EKS, then
1. Do we need to install the Prometheus agent on 15 AKS/EKS as a pod via helm? OR
2. Does Prometheus need to be installed on a single EC2/VM & Prometheus will pull the metrics from AKS/EKS?
Man you are great.
😍
Lovely video
Jay ho Anna ♥️
❤️
Thank you
Welcome
Thank you so much for this
Hi Abishek great video. Good explaination. I have one doubt what if dev team wont agree for writing metrics. is there any altenative? or we can use node exporter for application?
Thanks bro, Any chance to upload video about end to end k8s production application deployment with microservices connectivity
I will do that soon.
@@AbhishekVeeramalla thanks bro would be helpful for interviews
Thanks a bunch man😀
😍
Dear Abhishek, could you please share important interview questions(real time in K8) on Promethus and Graffana.
Tysm🥰
❤️
Thank You
You're welcome
@Abhishek
You have to enable phone pay transactions in your channel.
You can support the channel using buymeacoffee, link in description
Thank You ❤
Great Session But how to enable notifications?
Thanks a lot Sir
super content bro can you please explain with jfrod xray scanner also
sure, noted
I've been waiting for this since you mentioned the 45 days of DevOps. Thanks!!!
As a DevOps Engr, what metrics do you typically track?
Every possible thing of the cluster and applications.
For example:
CPU, Memory, Health, Successful Requests, Response Time
@@AbhishekVeeramalla Thanks!!
Abhishek nodeport use krte h jb to minikubeip:port pe terminal se access ho jati h application. But browser se ni hoti access . Browser pe bhi honi chahiye na?? But localhost:port pe ho rha access instead of minikube ip🙃 (practising on local with Ubuntu lts)
Thanks for the video bro❤️
Any idea about chatgpt in devops
Hi .. I made a video on chatGPT and my views on it. Please check
Hi @Abhi, Lets assume if Prometheus is on ClusterIP mode, will Grafana get the Metrics..? As per my understanding Nodeport Configuration is just for accessing Prometheus on Browser. Correct me if i'm wrong.
node port is used for accessing outside the cluster
Abhishek, I have not found any videos on k8 Volume and Autoscaling, if possible can you please make or attach some better links for the same, Thanks
Sure
Thank you ^^
Bro, There are No correct videos available to connect the Prometheus to trigger alerts to slack or email.
Can you please do video on Alert Manager? It helps a lot to so many people.
Sure, thanks for the suggestion
Very Very Nice and Detailed explanation Sir, Thanks a lot for your efforts and hardwork🙏
Most welcome !!
Hi sir, Thanks for sharing information. I have doubt. How the kube-state-metrics pod is created? is it created by default when we install prometheus?