Deploying Prometheus and Grafana in Kubernetes | Kubernetes | Prometheus | Grafana | Node Exporter

1 year ago
128

---------------------------------------------------------------------
Medium - https://medium.com/@vinod.chelladuraiv
GitHub - https://github.com/vinclv
Twitter - https://twitter.com/vintechie
Linkedin - https://www.linkedin.com/in/vinod-chelladurai-v/
Quora Space - https://www.quora.com/q/dataengineeringminds
---------------------------------------------------------------------
Code components used in this video can be found here - https://github.com/vinclv/data-engineering-minds-kubernetes

In case you like this video, I would feel very grateful if you could share the video on twitter and tag my name "vintechie" (https://twitter.com/vintechie). Thanks in advance.

𝐃𝐄𝐒𝐂𝐑𝐈𝐏𝐓𝐈𝐎𝐍:
In this video, you will learn about the following topics:
1. Setting up a minikube cluster on your local machine.
2. Deploying a simple Prometheus server inside Kubernetes.
3. Creating a role-based access control (RBAC) for Prometheus inside Kubernetes.
4. Deploying a simple node-exporter application inside Kubernetes for monitoring the individual nodes of a Kubernetes cluster.
5. How to add the node-exporter as the "target system to be monitored" to the Prometheus.
6. Deploying a simple Grafana server inside Kubernetes.
7. How to add prometheus as a data source to Grafana.
8. Creating dashboards for the node-exporter via the Grafana UI.

𝐔𝐬𝐞𝐟𝐮𝐥 𝐥𝐢𝐧𝐤𝐬:
1. Getting started with Kubernetes - https://www.youtube.com/watch?v=s_o8dwzRlu4
2. Getting started with Prometheus and Grafana - https://www.youtube.com/watch?v=7gW5pSM6dlU
3. Getting started with minikube - https://minikube.sigs.k8s.io/docs/start/
4. Lens UI for Kubernetes - https://k8slens.dev/
5. Docker Image for Prometheus - https://hub.docker.com/r/bitnami/prometheus
6. Docker Image for Grafana - https://hub.docker.com/r/grafana/grafana
7. Docker Image for Node Exporter - https://hub.docker.com/r/prom/node-exporter
8. List of Prometheus Kubernetes configurations - https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config
9. Example data source config file for Grafana - https://grafana.com/docs/grafana/latest/administration/provisioning/#example-data-source-config-file
10. Prometheus relabels - https://grafana.com/blog/2022/03/21/how-relabeling-in-prometheus-works/
11. Node Exporter deep-dive - https://github.com/prometheus/node_exporter
12. Prometheus exporters - https://prometheus.io/docs/instrumenting/exporters/
13. Configurations for Prometheus storage - https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
14. How to add persistent volume for Prometheus storage - https://devopscube.com/persistent-volume-google-kubernetes-engine/

Thanks for watching !!
நன்றி _/\_
#kubernetes #prometheus #grafana #kubernetesforbeginners #observability

0:00 Introduction and Agenda
2:11 Prepare the Kubernetes setup - minikube
5:02 Install Lens UI for Kubernetes
8:12 K8s deployment for Prometheus
23:41 K8s service for Prometheus - NodePort, and Tunnel
33:07 K8s service for Prometheus - LoadBalancer, and Tunnel
38:19 What is a Node Exporter
40:30 K8s daemonset for Node Exporter
47:30 K8s service for Node Exporter
53:14 Add targets to Prometheus - RBAC
1:06:51 Add targets to Prometheus - ConfigMap
1:20:18 Add targets to Prometheus - Volumes
1:27:57 K8s deployment for Grafana
1:33:10 K8s service for Grafana
1:35:04 K8s ConfigMap for Grafana
1:41:35 Create dashboards for Node Exporter via Grafana UI
1:46:26 Summary

Loading comments...