Best Server Monitoring with Prometheus and Grafana using Node Exporter and cAdvisor

VirtualizationHowto January 27, 2023
Video Thumbnail
VirtualizationHowto Logo

VirtualizationHowto

View Channel

About

Hello! Brandon Lee. I help to educate people about technology, explaining very complex topics simply. You will find all types of technology topics covered here such as Cloud, Enterprise virtualization, Kubernetes, Containers, Networking, Home lab environments, and just all around nerd stuff!

Video Description

A complete walkthrough of completely free and open source solutions to monitor your Linux, Windows, and Docker servers. In the view we see how we can setup and configure Prometheus, Node Exporter, Grafana, and cAdvisor to monitor servers in our environment and how you can easily configure these. Clone down the examples in this video from the following Git repository: https://github.com/brandonleegit/OpenSourceMonitoring Subscribe to the channel: https://www.youtube.com/channel/UCrxcWtpd1IGHG9RbD_9380A?sub_confirmation=1 My blog: https://www.virtualizationhowto.com _____________________________________________________ Social Media: https://twitter.com/vspinmaster LinkedIn: https://www.linkedin.com/in/brandon-lee-vht/ Github: https://github.com/brandonleegit Introduction to Prometheus, Node Exporter, Grafana, and cAdvisor - 0:00 Looking at how everything fits together - 1:15 Node Exporter details and written for Linux - 2:15 Windows Exporter to expose metrics for monitoring Windows machines - 2:28 cAdvisor for monitoring Docker containers - 2:56 Looking at the Linux host serving as the Docker container host - 3:26 Installing Docker Compose - 3:51 Verifying Docker Compose installation - 4:12 Looking at our Linux user used to run Docker on the Docker host - 4:27 Creating the local folder structure for the local volume mounts - 5:05 Using a crude bash script to create the folder structure - 5:23 Running the command to create the folders - 6:29 Overview of installing the monitoring stack with Docker Compose - 7:08 Editing the Docker Compose file for creating the monitoring stack - 8:03 Stepping through the Docker Compose configuration - 8:18 Talking through permissions and adding the User ID to avoid permissions issues with Prometheus - 9:22 Looking at cAdvisor and odd ports used - 10:47 Redis dependency 11:10 Saving the Docker Compose YAML file - 11:34 Running the Docker Compose UP command - 11:53 The provisioning of the containers finishes, checking everything to see if it is up and running - 12:18 Talking through troubleshooting if a container is crashing - 12:58 Containers are healthy and ready to move forward - 13:13 Talking about configuring Prometheus and getting metrics into Grafana - 13:23 Beginning the configuration of Prometheus - 13:43 Adding configuration to the Prometheus YAML file - 14:18 Stop and start Prometheus container to pick up the new YAML file - 14:43 Browsing out to port 3000 on Docker host to login to Grafana - 15:08 Change your password - 15:18 Navigate to settings and adding a data source - 15:30 Populating the address of our Prometheus installation - 15:48 Save and test the new data source - 16:06 Looking at the Explore dashboard icon - 16:17 Importing a community dashboard - 16:40 Getting the JSON file or ID from the Grafana community dashboards site - 17:00 Downloading the JSON or copy ID to clipboard - 17:30 Paste in the ID of the community dashboard - 17:42 Immediately you see the new dashboard imported to view metrics - 18:15 Looking at Windows Exporter to import metrics from a Windows host - 18:50 Download the Windows Exporter file and copy out to Windows host - 19:16 Running the Exporter installation and viewing Windows Exporter service - 19:30 Adding the Windows Exporter host to our Prometheus configuration - 19:50 Restarting Prometheus to pick up the new Windows host - 20:23 Download a Windows Exporter community dashboard - 20:37 Viewing the new Windows Exporter dashboard and information - 21:18 Talking about adding Docker to monitoring with Prmetheus and Grafana - 21:47 Looking at the Prometheus configuration and the cAdvisor configuration we have in place - 22:04 Concluding and wrapping up thoughts on Prometheus, Node Exporter, Grafana, and cAdvisor - 22:53 A written walkthrough of Prometheus Node Exporter monitoring: https://www.virtualizationhowto.com/2023/01/prometheus-node-exporter-cadvisor-grafana-install-and-configure/ Best docker containers for Synology NAS: https://www.virtualizationhowto.com/2023/01/best-docker-containers-for-synology-nas/

You May Also Like

Upgrade Your Aerial Footage

AI-recommended products based on this video

Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN
Best Seller

SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN

(71,074)
$29.99$26.61
FREE delivery Sun, Aug 10 on your first order
4K+ bought in past month
Loading...
Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

(44,904)
$17.99
FREE delivery Wed, Aug 20 on your first order
6K+ bought in past month
Loading...
Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

(103,365)
$13.49
5K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month