Beautiful Dashboards with Grafana and Prometheus - Monitoring Kubernetes Tutorial

preview_player
Показать описание
Grafana and Prometheus are a powerful monitoring solution. It allows you to visualize, query, and alert metrics no matter where they are stored. Today, we'll install and configure Prometheus and Grafana in Kubernetes using kube-prometheus-stack. By the end of this tutorial you be able to observe and visualize your entire Kubernetes cluster with Grafana and Prometheus.

A HUGE thanks to Datree for sponsoring this video!
Combat misconfigurations. Empower engineers.

(Affiliate links may be included in this description. I may receive a small commission at no cost to you.)

00:00 - What is Prometheus and Grafana
01:52 - Ad: Datree - Prevent Kubernetes Misconfigurations
03:05 - Prometheus Requirements
05:41 - Create a Namspace
06:22 - Installing with Helm and Using Values
09:12 - Alert Manager Helm Values
10:34 - Grafana Helm Values
11:30 - Helm Values for k3s Server
12:30 - Overriding and Relabeling with Helm
13:18 - Storage Class with Helm
15:22 - Creating Kubernetes Secrets for Grafana
17:30 - Installing Prometheus Stack
19:16 - Port Forwarding to Grafana with Kubernetes
20:58 - Exploring Charts in Grafana
23:37 - My Home Production Cluster Metrics
26:58 - Stream Highlight: "Chat tries to get me to speak German"

#grafana #prometheus #kubernetes

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

Actually mind blowing how easy you make these things, whereas I was to do this on my own it would take me weeks! Thanks so much for your work.

epochphilosophy
Автор

much appreciated, thank you
notes:
@15:22
graphana passwords, you can do them in terminal (but they are stored in history)
then you wrote to file echo > admin-user
which is stored in history

AminM
Автор

Tim, another “old school” video that is just fantastic! Keep it up :) ⭐️

DamjanKumin
Автор

Brilliant timing, just set up my own GKE Autopilot cluster a couple days back and wanted to implement and document monitoring!

liamhardman
Автор

This is really good. To the people who made Prometheus, to the implementers of helm and then the charts and finally you I can very easily get up and running. Thank you! Subscribed :))

marwanfikrat
Автор

Thanks for the great content Tim, your videos help me a lot at my work !!

lightyagamiben
Автор

Incredible tutorial..this is exactly what I was looking for. Subscribed!

NarendraChennamsetty
Автор

Great video always love tutorials thanks for all you do

kaitlynk
Автор

This channel is fantastic! Thanks Tim for the great content. <3

patrickmartins
Автор

Tim! I've been waiting for you to cover this!!

omarlittle
Автор

Hey Tim, your videos are so great! Keep up this amazing work!

Ps: I would love an video on deploying gitlab. Seriously struggling 😅

nataliekruck
Автор

[REDACTED] Great detailed walk-through Tim. Thanks so much.

cyber-paul
Автор

Your talk of deleting secrets from the Yaml file reminded me that I recently solved this problem in my Kubernetes cluster.
Using Hashicorp-Vault paired with another project called External Secrets, I am able to automatically pull my secrets from Vault and inject them into my applications automatically.
You should do a video on that so that people don't risk keeping all their secrets in source control or on the host.

filiecs
Автор

Great video. You might want to consider advertising in the title that you are specifically working with the kube-prometheus-stack. This is a very powerful approach and I think it would great if your video title had some reference to that.

roberto_camp
Автор

Tim, you talked about relabeling a bit in the config section but didn't see you cover what they did in the demo. I tried the labels you used as-is, and nothing changed. However, instead of "targetLabel: kubernetes_node" I tried "targetLabel: instance" and then some dashboards started changing instance IP address to node name. I'm using K3s with contrainerD (no docker).

RichDurso
Автор

Very good. I had issues implementing it before

Bear-form
Автор

Great stuff as always. Just checking where I can find the YAML file to edit the extra_server_args as mentioned in the video if you don't want to go the ansible route?

Subbeh
Автор

As always a great video! I had planed to setup the same thing you did in the vid, a bit over two weeks ago, but my laptop broke and now I have to get it repaired or a new one.

#100daysofhomelab keep going

dh-io
Автор

Great video series! Question: what would be the proper way to add additional extra_server_args to a K3s cluster setup with your playbook?

minecraftbuildingtips
Автор

25:00 Correction: It is a statefulset ;) Statefulsets always get created with a normal name and a number at the end. Replicasets in contrast get created by deployments and always have some random stuff at the end. Otherwise great video!

LampJustin