Server Monitoring // Prometheus and Grafana Tutorial

preview_player
Показать описание
Server Monitoring with Prometheus and Grafana setup in Docker and Portainer. I explain the difference between metrics and logging and how Prometheus can monitor all your server metrics and use Grafana to visualize them.

*Related Videos/Links*

________________

*💜 Support me and become a Fan!*

*💬 Join our Community!*

________________

*Read my Tech Documentation*

*My Gear and Equipment-**

________________

Timestamps:

00:00 - Introduction
01:08 - Why centralize monitoring
02:01 - Difference between logs and metrics
03:19 - What is Prometheus?
03:46 - Monitoring Architecture
05:12 - Deploy Prometheus and Grafana
10:03 - Configure Prometheus
13:21 - Third-Party Exporters
19:04 - Visualize data with Grafana
21:44 - Import Grafana Dashboards

________________
All links with "*" are and/or include affiliate links.

#Prometheus #Grafana #HomeLab
Рекомендации по теме
Комментарии
Автор

I now separated the docker-compose files for Grafana and Prometheus in two separate folders!

christianlempa
Автор

Absolutely invaluable. I have gone through a few of your other videos as well, and everything is essentially easily digestible essential knowledge that would otherwise take me weeks to search and figure out on my own.
A huge plus is that the scripts and snippets provided actually work out of the box and everything is explained on an almost line by line basis.
Thank you for your amazing work

cyberlord
Автор

Before going to watch this video .. i really appreciate you for making this video .. i was struggling to learn the basics of Prometheus and grafana, you really helped me by putting this video.. Thx in advance

xx
Автор

for anyone who cannot get the prometheus or grafana container to start or they keep restarting (which is what happened to me), use the details below:

the volumes that your container accesses, run this command on them:

sudo chown -R 65534:65534 prometheus_example/

replace "prometheus_example" with the folder name that you provided to your volume(s)
65534 is the user and group id of the user/group that runs prometheus in the container.

for me, grafana also had permission issues in the logs of the container, too. the user and group id is 472 so you'd replace "65534" with "472" in the command above.

this issue occurs due to the user inside each container not having the correct permissions set. to my knowledge, most people here shouldn't have a problem if you followed the steps provided in the video correctly (which i didn't and i changed a few things with the volumes which is probably why i had this issue)

auroraveon
Автор

I watched your video and set up home server monitoring for Docker containers—Grafana is fantastic! Thanks to your guide, I now have two dashboards for monitoring, and they look great. I’ve subscribed to your channel and will keep an eye out for more Docker-related content.

farazalimcp
Автор

Awesome man, a youtube guide that doesn't start with notepad on windows, but immediately gives you the github repo. Love it, great guide!

Flako-dd
Автор

Man, I can't thank you enough!! all your videos are so easy to follow and actually understand what I'm doing!! You are awesome!!

Psyts
Автор

If you are using Ubuntu 22.04 and missing memory stats in grafana to monitor your docker containers, you'll need to change the version tag on cadvisor to: v0.44.1-test

ryanbell
Автор

Used cockpit for the last 2 years. I am very happy how it works. I have 7 servers in total i have to manage, and cockpit allows me to do just that by logging in on one single server adding others to there and watching there progress

averagedev
Автор

Me -> where can I find a good tutorial about Grafana and Prometheus?
Christian -> here you go!
:D
Thanks for all you do for the community!

djKenpLan
Автор

I don't know why I try to go anywhere else when I need something installed in Docker. These videos always give more information than what is needed and everything is explained very well

jacobcrisman
Автор

Great tutorial, thank you! For any beginers out there. if your like me.. im trying to learn YML syntax... Linux and docker/portainer all at the same time.. Make sure your syntax in your prometheus.yml file is correct or else it wont start... I also had to identify the user: root in my stack editor for prometheus so that could be read.. im sure thats not secure.

packetattack-netsec
Автор

Get hit with a firehose of information! I have found it difficult to find quality tutorials on setting up a Grafana/Prometheus dashboard. Thanks for the wealth of resources and information!

JCtheMusicMan_
Автор

It's your pacing. It's just perfect, despite the level of detail you move through at a quick pace, but not so quick that I cannot follow.

dougbeard
Автор

Thanks a lot. There is so much ressources, sometimes ununderstandable, it's difficult to find the information hidden in the noise. Your video is very very helpful. Thanks a lot!

renobodyrenobody
Автор

Thank you, Christian, for this ultra-high quality content. Learned a lot.

One thing tho, as for me, frequently i found it difficult to keep up with your pace.

IgorKuts
Автор

Happy to see this video particularly by "The Digital Life" Thanks sir cause i have seen many videos already but here we can get exact points to remember and its basically on point

tirushv
Автор

I got an error during running all staff: Error response from daemon: path / is mounted on / but it is not a shared or slave mount
any ideas?

ernestodepesz
Автор

Such a great video! I've been developing a Grafana plugin at work and there is large void in high quality Grafana content.

Bradenxd
Автор

Great video as usual. There's just one thing though that I'm curious about and that is missing here. Notifications, for example when a service goes offline or when a specific event happens. I've seen that Grafana has an Alerts feature. I would really appreciate if you could make a video on just something like that for real life scenarios where a notification is useful

edisvila