No video

My Kubernetes cluster finally has Grafana Logging

  Рет қаралды 7,882

Web Dev Cody

Web Dev Cody

Күн бұрын

My Products
📖 ProjectPlannerAI: projectplanner...
🤖 IconGeneratorAI: icongeneratora...
📝 ThumbnailCritique: thumbnailcriti...
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.web...
📁 GitHub: github.com/web...
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 31
@denis_sh0
@denis_sh0 6 ай бұрын
For educational purposes, consider adding tracing as well. Setting up tracing with OpenTelemetry is not hard, and Grafana offers another service called Tempo for traces. Video about OpenTelemetry could be awesome
@WebDevCody
@WebDevCody 6 ай бұрын
That could be useful I’ll look into it
@TannerBarcelos
@TannerBarcelos 6 ай бұрын
OpenTelemetry is amazing. Built some POCs on it at work. Definitely integrate it into this. Sure, it’s a lot of ops/devops/cloudy related stuff but like you said, best way to learn it or at least know about it for the future is building something with it
@iamunknownperiod3355
@iamunknownperiod3355 5 ай бұрын
I don't know what he'll be tracing. His sample app revolves around 2 services and one of them is RabbitMQ. You should deploy a whole microservice based app to appreciate tracing. I'd prioritize metrics first.
@gradientO
@gradientO 4 ай бұрын
Hope you do it! I'm trying to setup something similar in my nodejs project with Jaeger
@abdirahmann
@abdirahmann 6 ай бұрын
oh my god welcome cody, why do i say welcome?? 😂😂, you've poked the devil called "home lab", with all this bare metal stuff that you do nowadays, you have kubernetes now, you've got grafana for analytics, loki for log collection, FANTASTIC, now you also need traefik reverse proxy for your services and setup SSL certicates, go get an actual servers, a router/firewall combo, a switch, a fiber line, setup some subnets and vlans, do port mirroring to collect internet traefik for analysis, have a proxmox cluster and now you are done. 😂😂. This is amazing, idk what magician cast a spell on you to try out stuff like this because you swore you'll never touch baremetal!👋👋👋
@WebDevCody
@WebDevCody 6 ай бұрын
Someone said I’m just a frontend engineer, so I have to spread my wings
@abdirahmann
@abdirahmann 6 ай бұрын
@@WebDevCody you are very humble
@tinrab
@tinrab 6 ай бұрын
Loki is great. You can do structured logging and filter by key-value. Pretty much what you'd get with ELK stack, but more efficient. There's also Grafana Tempo for tracing.
@jowadev
@jowadev 6 ай бұрын
Your video is awesome, isn't it? I can see your progress and the curiosity you have to move to a broader level, not just focusing 'solely' on application development but also scaling to production on an IaaS. Are you also planning to implement Terraform soon, haha :)
@WebDevCody
@WebDevCody 6 ай бұрын
Ha nah I won’t be implementing terraform 😂
@dandogamer
@dandogamer 6 ай бұрын
You're along the right lines of using consistent hashing but atm your lookup logic is O(N) but this can be enhanced with something called the chord protocol which allows you to store like a table of lookup information to improve this. Next if you are using a lot of nodes you will experience a thing called hot and cold regions. Basically at this point you are reinventing dynamodb or Cassandra. Cassandra actually has some great docs on things like tombstoning, distributed writes etc. Also I would like to add what you've managed to learn and build in a couple of nights is truly amazing and clearly shows you have a wealth of experience and arent just some "frontend" guy. Fair play cody you've earnt my respect
@WebDevCody
@WebDevCody 6 ай бұрын
Thanks man, I want to keep exploring these concepts, it’s been fun. Right now I’m struggling to figure out node to node communication. I may look into write ahead logs as well instead of my current store .json file approach.
@dandogamer
@dandogamer 5 ай бұрын
@@WebDevCody Node to node communication can be done by using kubernetes services
@charliesta.abc123
@charliesta.abc123 6 ай бұрын
Nice! I'm also setting up Grafana for my docker swarm cluster
@Mirislomovmirjalol
@Mirislomovmirjalol 6 ай бұрын
In this world, too many smart people. I can’t even use docker 😩
@radimhof
@radimhof 6 ай бұрын
Cool!
@hansiboy5348
@hansiboy5348 6 ай бұрын
You should look up some consensus algorithms If you haven't done it yet
@WebDevCody
@WebDevCody 6 ай бұрын
I read about PAXOS and Raft, they sound confusing 😂
@hansiboy5348
@hansiboy5348 6 ай бұрын
@@WebDevCody you chose to do distributed storage not me 😭😉
@WebDevCody
@WebDevCody 6 ай бұрын
@@hansiboy5348 😂 I was thinking of doing a primary - replica type of setup for my shards. I think that will be an easier first step. Would that still require a consensus algorithm? So user writes to cluster, cluster proxies to primary, primary writes to disk, primary also proxies to replica node, return response to user. Then I’d just need to add some type of failover strategy to promote the replica to primary if the primary can’t be reached. I’m not sure on that part 😂
@hansiboy5348
@hansiboy5348 6 ай бұрын
@WebDevCody This is a reasonable approach. You can also make the primary db for writing and the other replicas for reading. You might get into some trouble when the primary db dies and the rest of the cluster needs to have consensus about the new leader. The naive approach would be for every replica to speak with every other replica. This approach will work and could be cool to see implemented, but as you can imagine it won't scale that well. Good luck!
@eshw23
@eshw23 6 ай бұрын
CODY PLEASE TELL ME HOW YOU GOT GOOD AT THIS HARD DEV OPS STUFF I FIND IT SO HARD
@WebDevCody
@WebDevCody 6 ай бұрын
Chatgpt and read docs
@eshw23
@eshw23 6 ай бұрын
@@WebDevCody THANK YOU SO MUCH
@dhLotan
@dhLotan 6 ай бұрын
It's not hard really, but it requires a lot of reading and can be quite tedious and boring. It's rather necessary though unless you have someone else on a team dedicated to cluster telemetry.
@Peacemaker.404
@Peacemaker.404 6 ай бұрын
hey cody, which ui libraries do you often use or is it just shadcn?
@WebDevCody
@WebDevCody 6 ай бұрын
Just shad right now
@ultimathule9841
@ultimathule9841 6 ай бұрын
Hello test
@WebDevCody
@WebDevCody 6 ай бұрын
hello
Serverless might bankrupt you (and how to deploy to a VPS instead)
14:26
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 66 МЛН
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 271 М.
Open source observability explained - the Grafana Labs stack
19:32
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
Autoscaling in Kubernetes
19:07
Pavan Elthepu
Рет қаралды 22 М.
Transport Layer Security (TLS) - Computerphile
15:33
Computerphile
Рет қаралды 476 М.
Fluentd on Kubernetes: Log collection explained
27:54
That DevOps Guy
Рет қаралды 49 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,3 МЛН
Is THIS your next NAS? (Zima Blade Review)
23:28
Hardware Haven
Рет қаралды 228 М.
Zero downtime with Kubernetes was harder than I expected
7:08
Web Dev Cody
Рет қаралды 7 М.
The proper way to secure your databases
14:11
Web Dev Cody
Рет қаралды 17 М.