Docker Dashboard Using Grafana, Prometheus & Node Exporter

  Рет қаралды 66,139

DB Tech

DB Tech

Күн бұрын

Пікірлер: 170
@nwdsc
@nwdsc 4 жыл бұрын
I really appreciate all your hard work and help provided by your content. I put this together in a stack and got everything up and running on two different test systems. I thought I would share here in case anyone wanted to try out this method. Note that this setup still relies on the "prometheus.yml" file so the appropriate folder and file needs to be created BEFORE running the stack. Enjoy! version: '2' services: node-exporter: image: quay.io/prometheus/node-exporter:latest container_name: node-exporter restart: unless-stopped volumes: - '/:/host:ro,rslave' - /etc/localtime:/etc/localtime:ro network_mode: host command: - '--path.rootfs=/host' pid: host prometheus: image: prom/prometheus container_name: prometheus restart: unless-stopped depends_on: - node-exporter ports: - 9090:9090 volumes: - /srv/dev-disk-by-label-Files/Config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml grafana: image: grafana/grafana container_name: grafana restart: unless-stopped depends_on: - prometheus - node-exporter ports: - 9006:3000
@AndersQvist
@AndersQvist 4 жыл бұрын
Again, thanks for a intuitive, and easy-to-follow guide. It did of course now work the 1st time, but after some trouble-shooting a copy-paste error was discovered and now I have page showing my shiny stats!
@DBTechYT
@DBTechYT 4 жыл бұрын
Glad it helped
@Tivrest
@Tivrest 4 жыл бұрын
The best KZbin tuto for Grafana installing......... and it's again DB Tech. Thanks a lot friend.
@DBTechYT
@DBTechYT 4 жыл бұрын
Wow, thanks!
@kevinbreen4510
@kevinbreen4510 3 жыл бұрын
So much more modern looking than the previous rpi-monitor. Thank you!
@canichos
@canichos 3 жыл бұрын
Great info! Love all your raspberry pi stuff. Im running now 27 containers on one of my rasp4 including HA, nodered, and so much more, learned a lot from you! Many thanks!
@DBTechYT
@DBTechYT 3 жыл бұрын
Good stuff!
@ColinEditz
@ColinEditz 3 жыл бұрын
Wow that sounds great! Which model of the Rasp4 do you have, how much RAM?
@canichos
@canichos 3 жыл бұрын
@@ColinEditz its a 4gb version booting directly from a very fast SSD, I don't even use a memory card, amazing results.
@ColinEditz
@ColinEditz 3 жыл бұрын
@@canichos Oh cool, awesome. I'm getting a 2Gb soon and was a little worried if I didn't need more. But if you can run that many containers on 4Gb, surely even 10 containers should be doable. Just out of curiosity, what things are you running? I currently have Homebridge (HA alternative) and Node-RED running on a Pi Zero W
@canichos
@canichos 3 жыл бұрын
@@ColinEditz currently I have, nginx, bitwarden, nodered, pihole, cloudflared, portainer, wireguard, mosquitto, zwavejs2mqtt, homeassistant, duckdns, wordpress, endlessh, heimdall, nginx_db, cloudflareddns, wordpress_db, tandoor, tandoor_db, daapd, motioneye, Samba_Server, but don't ignore a fast ssd since impact is huge on the rasp performance.
@ntn888
@ntn888 3 жыл бұрын
this channel is a goldmine
@Matrox473
@Matrox473 4 жыл бұрын
Thank you man, was really painless to setup, nice !
@DBTechYT
@DBTechYT 4 жыл бұрын
Great to hear!
@Farizno
@Farizno 4 жыл бұрын
Another great video. Thanks for sharing. I'm really enjoying the series.
@BugMonsters
@BugMonsters 2 жыл бұрын
Interesting Video. Is it possible to monitor docker container with this as well? And is it possible to use this on a VM?
@majorgear1021
@majorgear1021 2 жыл бұрын
I came here because, from the title, I though the dashboard would have docker container metrics. This is sort of useful, but since most of my apps are dockerized, I really want metrics for my containers more than the docker host.
@lawsnewton
@lawsnewton 3 жыл бұрын
Your Pi was probably having DNS issues as I did not need to use an IP on my install. Thank you for the guide this is Awesome!!!
@GorkemYildirim
@GorkemYildirim 4 жыл бұрын
Followed all steps, working fine. Thanks alot.
@ShayneChambers
@ShayneChambers 4 жыл бұрын
Great video. I like your channel. I have prometheus running on another host in a truenas jail which has its own up address. I get the website with metrics. I have grafana running in a container on a ubuntu server. It seems that the grafana server cannot connect to node exporter in Prometheus on truenas. Any ideas why? It seems that grafana can’t connect to the external network. I’m new to docker/rancher/kubernetes. Thx bud
@amiguirigillo
@amiguirigillo 4 жыл бұрын
Thanks! I really no have any idea how works, well that before see your video, thanks! keep sharing cool things like this.
@TomasHedlund16
@TomasHedlund16 2 жыл бұрын
Hello, I've tried to install node-exporter so many times now but can't get it to work. I only recieve this: docker: Error response from daemon: path / is mounted on / but it is not a shared or slave mount. Do you have any idea about what to do about that. I'm running docker in a lxc container on proxmox.
@royitoroy
@royitoroy 2 жыл бұрын
me too and have a proxmox too... maibe cant be install over proxmox
@TheAramis0
@TheAramis0 3 жыл бұрын
At 9:38 seeing you have few instances (node-exporter) which you can select in the drop-down menu in Instance section. My question is, so far I have 2 different Node-Exporter with State=up in Prometheus/Targets but in Grafana is showing me only 1 of 2. How did you get more nodes in the grafana dashboard ?
@DBTechYT
@DBTechYT 3 жыл бұрын
It's been a while since I did this video, but, if I remember correctly, I had to add additional lines to the .yml file... something like this I think: global: scrape_interval: 5s external_labels: monitor: 'node' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['192.168.68.127:9090'] ## IP Address of the first host - targets: ['192.168.68.128:9090'] ## IP Address of the second host - job_name: 'node-exporter' static_configs: - targets: ['192.168.68.127:9100'] ## IP Address of the first host - targets: ['192.168.68.128:9100'] ## IP Address of the second host
@TheAramis0
@TheAramis0 3 жыл бұрын
@@DBTechYT I've added like that but still not seeing another target from another host in the dashboard. missing something in the configuration OPNSense,Prometheus or Grafana
@TheAramis0
@TheAramis0 3 жыл бұрын
OPNsense is using Telegraf with output to Prometheus, could be there something
@TheAramis0
@TheAramis0 3 жыл бұрын
Prometheus is getting the node-exporter will all data but Grafana is not seeing it :(
@JimMTVVlogs
@JimMTVVlogs 3 жыл бұрын
Really great tutorial! I just want to ask, how can we add another server in the same dashboard? Is there an easy way doing that?
@marmao78
@marmao78 4 жыл бұрын
Hi DB Tech Thank you for your great content. I would like your help with a question. In your video, you have installed all software on the same server (Raspberry Pi). Let´s spouse that I have 4 different servers that I would like to monitor. I would like to monitor all of them from a single point (docker server with grafana). Should I install only node exporter in each server that I want to monitor or should I need to install Prometheus in all of them? In minute 9:41 of your video, you have a dashboard that shows several servers monitored. I would love to do the same. Do you mind sharing with us how you did it? Thank you for all your help. I´m having a lot of fun following your guides.
@DBTechYT
@DBTechYT 4 жыл бұрын
You would install Node Exporter on each of the servers you want to manage. Then you would modify the prometheus.yml file on your main server to have more lines: nano prometheus.yml global: scrape_interval: 5s external_labels: monitor: 'node' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['192.168.68.127:9090'] ## IP Address of the localhost - job_name: 'node-exporter' static_configs: - targets: ['192.168.68.127:9100'] ## IP Address of the localhost - job_name: 'node-exporter' static_configs: - targets: ['192.168.68.128:9100'] ## IP Address of the additional computer - job_name: 'node-exporter' static_configs: - targets: ['192.168.68.129:9100'] ## IP Address of the additional computer - job_name: 'node-exporter' static_configs: - targets: ['192.168.68.130:9100'] ## IP Address of the additional computer
@JohanovskyT
@JohanovskyT Жыл бұрын
Thx for this guide. It helped me a lot!
@OpiumZA
@OpiumZA 4 жыл бұрын
Thank you, all up and running!
@majorgear1021
@majorgear1021 2 жыл бұрын
I used your macvlan videos to containerize and centralize around 10 of my apps running in separate linux containers (lxc’s) on a single system. However, some remaining apps need to be Internet accessible, so I think I’ll put them on a separate node using wireguard to connect them to my internet accessible vps. So, I’ll want to have metrics from multiple systems sent to prometheus and available to grafana for “dashboarding” . Is there a video on how to set things up to monitor multiple docker nodes/hosts ? Also, a video on alerting would be great as well. While containerizing apps, found an app that hadn’t been able to connect to it’s data source for 5 months! I had no clue it was broken until I migrated it to docker.
@RonMalouin
@RonMalouin Жыл бұрын
nice video, used stacks to deploy this, worked after only a few ds moves :)
@jeffrisdon2803
@jeffrisdon2803 Жыл бұрын
Very Cool! Thank You!! Also love your website! All kinds of cool stuff!
@DBTechYT
@DBTechYT Жыл бұрын
Thanks so much!
@lptechCT
@lptechCT Ай бұрын
Could you make another video, this time showing how to install it inside an LXC container? Thank you sir!
@DBTechYT
@DBTechYT Ай бұрын
It would be more or less the same process: deploy an LXC with something like Debian on it. install Docker on it. Then follow this video
@DrFunkBlast
@DrFunkBlast 3 жыл бұрын
i dont see the code in the description below as you mentioned in the video
@DBTechYT
@DBTechYT 3 жыл бұрын
Click the link in the description
@Yoshirocksyou
@Yoshirocksyou 3 жыл бұрын
@@DBTechYT the link below only gives us code for a docker compose witch is not on the video tutorial. Makes it kinda confusing for some viewers
@DBTechYT
@DBTechYT 3 жыл бұрын
On that page, there is a description at the top and then 2 links; one for the docker compose and one for the prometheus.yml file. I just checked and even have the page open and am looking at it right now.
@Yoshirocksyou
@Yoshirocksyou 3 жыл бұрын
@@DBTechYT at the beginning of the video you mentioned we need to install node exporter, you then paste into putty a command and follow up with “all of this will be in the description down below” i know how to use docker compose, my first statement was “this could be confusing for some viewers“
@Yoshirocksyou
@Yoshirocksyou 3 жыл бұрын
Sorry if I’m missing something or just not making sense
@condor13
@condor13 3 жыл бұрын
Thanks, all up but grafana in not showing any data. Followed all your steps. prometheus works, node exporter spits out data...but dashboard on the grafana show "no data" on all of them. Thanks
@royitoroy
@royitoroy 3 жыл бұрын
Exactly the same thing happens to me, I installed it first in my virtual machine (omv6) and everything was perfect as DB says, but when I install it in my real server (OMV5) prometheus it seems that it does not take the data from node exporter :( you already solved it ?
@gotelldonn
@gotelldonn 4 жыл бұрын
Great video as always!
@DBTechYT
@DBTechYT 4 жыл бұрын
I appreciate that
@advancetechwithshahzaib
@advancetechwithshahzaib 4 ай бұрын
Can it stores and monitor the information of our system on which grafana and Prometheus is installed by Docker?
@asiw
@asiw 4 жыл бұрын
Superb. Really excellent. Thank you.
@JuanaHMelo
@JuanaHMelo 4 жыл бұрын
Hello David, can do another video showing how to scrape data from containers? as far I could understand Node export only collects data from the host itself but not of the containers, it would be great if you create a video showing how to collect metrics of the containers
@breakwin96
@breakwin96 4 жыл бұрын
Could you have a look at selfhosting Clockify in a docker container? would love a tutorial :)
@ryanbell85
@ryanbell85 4 жыл бұрын
Should I still look at using Docker with the recent deprecation news? I'm just getting started.
@DBTechYT
@DBTechYT 4 жыл бұрын
What deprecation news? I've only heard that Kubernetes isn't supporting Docker the same way moving forward.
@ryanbell85
@ryanbell85 4 жыл бұрын
@@DBTechYT yeah, kind confusing to understand the impact this news for people that have a home lab. Do you see any issues using the Docker runtime long term or should I consider using another runtime for all my docker images?
@DBTechYT
@DBTechYT 4 жыл бұрын
Docker isn't going anywhere I don't think. The only change is the Kubernetes thing, so you should be just fine.
@Teleport73
@Teleport73 2 жыл бұрын
Love your content. Always clear and reliable. Could you make a short video on how to set up Grafana for local https in Docker please? I currently have many panels pulled into Home Assistant as /webpage cards, but unfortunately these won't load/display when viewed on a remote browser or the HA companion app, because the embedded links from Grafana are http. Nowhere can I find this information. Thanks.
@washingtoninf
@washingtoninf 2 жыл бұрын
You should use a reverse proxy such as nginx with letsencrypt free ssl and publish your cards using the front domain with https with the reverse proxy doing the job.
@majorgear1021
@majorgear1021 2 жыл бұрын
@@washingtoninf Good idea. I just set up Traefik for this a few days ago. I made DNS aliases (CNAMEs) for my services, pointed them t the proxy IP, and it servers the wildcard ssl certificate and forward the connect back to the correct host on the backend. I like how it automatically renews certs as well.
@vincent.borreux
@vincent.borreux 4 жыл бұрын
Thanks a lot. Very impressive dashboard and monitoring tool !!!!
@DBTechYT
@DBTechYT 4 жыл бұрын
Glad you like it!
@neilvermeulen5283
@neilvermeulen5283 3 жыл бұрын
Thank you mate!
@theRealist.
@theRealist. 4 жыл бұрын
Well done! It works perfectly!
@DBTechYT
@DBTechYT 4 жыл бұрын
Awesome!
@gnarly3327
@gnarly3327 3 жыл бұрын
I might have done something wrong but I cant choose any job from the dashboard, even though the service is picked up by prometheus.
@Ladi7724
@Ladi7724 3 жыл бұрын
Awesome Tutorial quick setup.. Thanks
@pieterjdw
@pieterjdw 4 жыл бұрын
Thank very much for explaining and sharing your knowledge. If I start node exporter on another system how will I pull the data in the main system with prometheus?
@DBTechYT
@DBTechYT 4 жыл бұрын
Install Node Exporter on the new server. Then, on your existing system, add an additional node-exporter line in your prometheus file that has the IP address and port for node-exporter of your new device
@Seabassxb
@Seabassxb 3 жыл бұрын
Would it be possible to monitor devices not using docker ? I have a pi using steam link which can't be run in docker and would like to see performance
@thebaldfox
@thebaldfox 3 жыл бұрын
Great tutorial as always, but I cannot for the life of me get this working. I can bring up the metrics (node-exporter), and can also fire up prometheus, but when I click under service discovery, I cannot get Prometheus to pick up Node-exporter.... I created the prometheus.yml as suggested, with the applicable IP addresses, but/home/andy/docker/prometheus/prometheus.yml... can someone tell me if there's an issue with keeping it there rather than ETC? I adjust my docker stack accordingly to take into account my location, but I cannot get it to read it. Any thoughts?
@devdylan6152
@devdylan6152 3 жыл бұрын
if you are doing this for a VPS and not your pi, you should include the port 9100 into the allowed list, id suggest ip params setting it to only be accessible by the systems own IP but try it without that setting first.
@royitoroy
@royitoroy 3 жыл бұрын
Exactly the same thing happens to me, I installed it first in my virtual machine (omv6) and everything was perfect as DB says, but when I install it in my real server (OMV5) prometheus it seems that it does not take the data from node exporter under service discovery :( you already solved it ?
@zaonpt
@zaonpt 3 жыл бұрын
TYVM i love ur vids
@Vibe_Chex
@Vibe_Chex 3 жыл бұрын
Great video, thanks!
@DBTechYT
@DBTechYT 3 жыл бұрын
You bet!
@andreaquentino1068
@andreaquentino1068 2 жыл бұрын
Cool!!! Thanks!!!
@Farang_Lifestyles
@Farang_Lifestyles 3 жыл бұрын
awesome tutorial, thanks so much
@DBTechYT
@DBTechYT 3 жыл бұрын
Glad it was helpful!
@sarbajitdas4345
@sarbajitdas4345 3 жыл бұрын
Really helpful video...thanks a lot
@DBTechYT
@DBTechYT 3 жыл бұрын
Most welcome!
@jasonflt
@jasonflt 4 жыл бұрын
Could I suggest a complete network monitoring setup ? Step by step please
@DBTechYT
@DBTechYT 4 жыл бұрын
Did you have something specific in mind?
@jasonflt
@jasonflt 4 жыл бұрын
@@DBTechYT i was searching the other day for just a network monitoring system. I'm having ping spikes every so often through my network and wanted to see what piece of equipment was taking up bandwidth. if it could be done through dashboard and outputted in grafana would be cool. I looked but most of the stuff, well it's above my learning or knowledge of implementing it . Maybe you know of something or .......
@MCSnipexLP
@MCSnipexLP 4 жыл бұрын
Thank you! worked perfect
@DBTechYT
@DBTechYT 4 жыл бұрын
Awesome! Thanks for the comment :)
@ronm6585
@ronm6585 4 жыл бұрын
Nice! Thank you.
@lb_RobotMonkey
@lb_RobotMonkey 4 жыл бұрын
How do I get access to the grafana.ini file so I can update alert info (email, slack webnooks, etc.)?
@kavivarman3459
@kavivarman3459 4 жыл бұрын
I got error in prometheus >>>Warning: Error fetching server time: Detected 48578.12199997902 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results. how to solve ??????
@jamesmcaninch
@jamesmcaninch 2 жыл бұрын
I used the stack on the link via Portainer. When using nano to write the prometheus.yml file, I get the following error when trying to save it: [ Error writing prometheus.yml: Is a directory ]. Any idea how to get around this?
@DBTechYT
@DBTechYT 2 жыл бұрын
Do the following: Ssh into your server Cd to the prometheus.yml Remove it with: rm -rf prometheus.yml Then re-create the file with: nano prometheus.yml
@jamesmcaninch
@jamesmcaninch 2 жыл бұрын
@@DBTechYT Thanks very much for the response. That solved that problem. I now can't get any data on my Grafana dashboard, but I'll keep plugging away!
@jamesmcaninch
@jamesmcaninch 2 жыл бұрын
All working now :)
@robertsv539
@robertsv539 4 жыл бұрын
In the Prometheus command the second part doesn't work for me for some reason, the :/etc/prometheus/prometheus.yml prom/prometheus. Did we have to create a /etc/prometheus folder beforehand?
@DBTechYT
@DBTechYT 4 жыл бұрын
This is what happens when you don't watch the video. 4:33
@robertsv539
@robertsv539 4 жыл бұрын
@@DBTechYT Hmm, still don't see the folder creation in etc there, no worries though - just used cloud commander and copied it over manually. Now it works!
@BenjamineKrypton
@BenjamineKrypton Жыл бұрын
Thank You
@StephenYT.
@StephenYT. 3 жыл бұрын
but this graph are static not dynamic?
@marmao78
@marmao78 4 жыл бұрын
Hi DB Tech Thank you for your great content. I have a Mikrotik router that I would like to monitor. Do you know how I could monitor the Mikrotik router and switch using Prometheus and grafana? If you have a Mikrotik device I think it will be such great content to share. Thank you for all your help.
@DBTechYT
@DBTechYT 4 жыл бұрын
You can only monitor things that have an API that you can tap into.
@itsathejoey
@itsathejoey 2 жыл бұрын
In my lab I use Watchtower to update my containers and when I tried running Grafana, each time it would update it would lose its config. How do you go about making Grafana persistent?
@Marchand_
@Marchand_ 2 жыл бұрын
Setup a link to a volume or bind mount like so: ./data/grafana:/var/lib/grafana
@itsathejoey
@itsathejoey 2 жыл бұрын
@@Marchand_ Think I tried that once and Grafana just didn't want to work.
@kazifaisal-rj9js
@kazifaisal-rj9js 9 ай бұрын
Awesome
@WisherTheKing
@WisherTheKing 4 жыл бұрын
I installed prometheus on all my nodes but I can't combine all of the data sources like yours. How did you do that? Great video btw.
@DBTechYT
@DBTechYT 4 жыл бұрын
I show the entire process in this video. Check your container logs to figure out what's going wrong
@WisherTheKing
@WisherTheKing 4 жыл бұрын
@@DBTechYT You actually are not showing that actually and that’s why I asked. Thanks anyway.
@patrickgleissner3945
@patrickgleissner3945 4 жыл бұрын
Great video - spared me a lot of time. Some hickups though: 1. as of now you have to download and edit the json file to your preferred dashboard. Otherwise you just get "table-old" error reportin inside the dashboard. 2. my installation picks /dev/loop1 98M 98M 0 100% /snap/core/10577 as root partition of the node - stating it is 100% full. Certainly this is not as intended...
4 жыл бұрын
Hey, thanks for the video! I tried to get Grafana dashboard on my raspberry pi 2 model B, but, when I'm trying to add an id of grafana dashboard, I get a message: "Cannot read property 'result' of undefined", so the dashboard is empty. I tried to find a solution, but I didn't find a way to fix. Maybe you can help me? Thanks!
@DBTechYT
@DBTechYT 4 жыл бұрын
No idea. I don't have a Pi 2 to test on.
@stefwill
@stefwill 3 жыл бұрын
Great walkthrough! I followed you exactly and everything is working as expected except Prometheus. I keep getting this error but can't seem to figure out why and my Google-fu is letting me down. level=error ts=2021-06-29T03:17:38.313Z caller=main.go:355 msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" err="open /etc/prometheus/prometheus.yml: no such file or directory"
@laneyweb
@laneyweb 4 жыл бұрын
Hey thanks for the video. I'm failing at the first hurdle I'm afraid. When I run the node explorer container on my Synology, I get this message at the end of the install: docker: "Error response from daemon: linux mounts: path / is mounted on / but it is not a shared or slave mount. " I tried Google but I cant seem to find a way to fix. Thanks!
@laneyweb
@laneyweb 4 жыл бұрын
Scrub that :) - I found this command "mount --make-rshared /" and all worked well then.
@DBTechYT
@DBTechYT 4 жыл бұрын
Awesome! Thanks for sharing your solution!!
@laneyweb
@laneyweb 4 жыл бұрын
@@DBTechYT Thank you for the video. Used Grafana at work but never thought to have it here for my personal NAS. Thanks again for all the great vids :)
@falroi
@falroi 4 жыл бұрын
I’m having this same error on a mac mini, can’t seem to figure this one out. Any suggestions?
@usmanAli-hw5xu
@usmanAli-hw5xu 4 жыл бұрын
sir i want to monitor jitsi meet server with grafana any idea ?
@nordinekhalfoun
@nordinekhalfoun 4 жыл бұрын
A great Thanks !! Can you do a video on monitoring different hosts with prometheus and Grafana ?
@MrEric377
@MrEric377 4 жыл бұрын
Hey, I just found your channel and you have some really good content. QQ, Do you know of any software that can report\monitor on specific process / services on windows? (Processes I pick)
@DBTechYT
@DBTechYT 4 жыл бұрын
I believe you can install Node Exporter on Windows and then monitor it this same way
@jepeswe
@jepeswe 4 жыл бұрын
Great video as always :) Question: in the .yml file, is it possible to add other ip for example other computers running prometheus, so i can have one dashborad for all my computers.?
@DBTechYT
@DBTechYT 4 жыл бұрын
You can install this to pull data from multiple servers, but you'll need to install the node-exporter docker container on each of the servers you want to pull data from. Then your prometheus.yml file will look like this: global: scrape_interval: 5s external_labels: monitor: 'node' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['192.168.68.127:9090'] ## IP Address of the localhost - job_name: 'node-exporter-first-server' ## You can name 'node-exporter-first-server' basically whatever you want static_configs: - targets: ['192.168.68.127:9100'] ## IP Address of the localhost - job_name: 'node-exporter-second-server' ## You can name 'node-exporter-second-server' basically whatever you want static_configs: - targets: ['192.168.68.250:9100'] ## IP Address of the localhost Just keep repeating the last section that starts with "- job_name" all the way through the targets
@DBTechYT
@DBTechYT 4 жыл бұрын
Then you can toggle between the machines on the dashboard at the top where it says "JOB". You'll be able to select the server you want in the drop down.
@Findanish
@Findanish 3 жыл бұрын
@@DBTechYT How do i install node-exporter into each of my docker container?
@DBTechYT
@DBTechYT 3 жыл бұрын
You don't. It installs on your server and monitors everything
@MrJwan
@MrJwan 2 жыл бұрын
|Can I use this to montier Docker Containers Ram , Network traffic and CPU usage ?
@DBTechYT
@DBTechYT 2 жыл бұрын
I'm almost positive there's a way to do that, but I've never done it myself.
@datatech8813
@datatech8813 2 жыл бұрын
can change prometheus port ?
@shetuamin
@shetuamin 3 жыл бұрын
Last few days i try to figure out this, but failed.
@delduked
@delduked 4 жыл бұрын
dang, nice video!
@DBTechYT
@DBTechYT 4 жыл бұрын
Thanks!
@Lvdnat
@Lvdnat 3 жыл бұрын
Can also turn plex into grafana. and if so could you turn this into a tutorial?
4 жыл бұрын
When we are using a pc, the title and the controls of the video does not let us see the top and the bottom of your video. :(
@DBTechYT
@DBTechYT 4 жыл бұрын
That sounds like an issue on your end. I have never encountered what you're talking about. Can you send me a screenshot?
@dusty2445
@dusty2445 4 жыл бұрын
That is sweet
@bobbydigital9323
@bobbydigital9323 4 жыл бұрын
Great video. Can you do a video on DiskOver?
@DBTechYT
@DBTechYT 4 жыл бұрын
Great recommendation! I'll look into it
@kurtnaslund
@kurtnaslund 3 жыл бұрын
Hello, thanks for this tutorial as well! :-) Everything worked, until I cannot for the life of me remember the username and password for my Grafana-install. What is the easiest way to reset this?
@galiehneh
@galiehneh 4 жыл бұрын
I have another server to monitor, how to add it on the same dashboard/"Instance" ?
@patrickgleissner3945
@patrickgleissner3945 4 жыл бұрын
just edit the prometheus.yml - separating the servers by colon and run node exporter on second host static_configs: - targets: ['192.168.68.127:9100','0.0.0.0:9100'] ## IP Address of the localhost
@galiehneh
@galiehneh 4 жыл бұрын
@@patrickgleissner3945 thanks
@samK1XT
@samK1XT 2 жыл бұрын
How to save n limit the data to 1 year rather than beginning of the server ?
@DBTechYT
@DBTechYT 2 жыл бұрын
delete old logs?
@samK1XT
@samK1XT 2 жыл бұрын
@@DBTechYT yes delete logs that are older than 1 year to save space.....can we automate this process ?
@pablograffigna3928
@pablograffigna3928 4 жыл бұрын
Another cool video..i gonna try it in my servers..is possible get info from another server..not just from the localhost? maybe have a centralized grafana-prometheus log server???..greets from argentina!!!
@DBTechYT
@DBTechYT 4 жыл бұрын
You can install this to pull data from multiple servers, but you'll need to install the node-exporter docker container on each of the servers you want to pull data from. Then your prometheus.yml file will look like this: global: scrape_interval: 5s external_labels: monitor: 'node' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['192.168.68.127:9090'] ## IP Address of the localhost - job_name: 'node-exporter-first-server' ## You can name 'node-exporter-first-server' basically whatever you want static_configs: - targets: ['192.168.68.127:9100'] ## IP Address of the localhost - job_name: 'node-exporter-second-server' ## You can name 'node-exporter-second-server' basically whatever you want static_configs: - targets: ['192.168.68.250:9100'] ## IP Address of the localhost Just keep repeating the last section that starts with "- job_name" all the way through the targets
@DBTechYT
@DBTechYT 4 жыл бұрын
Then you can toggle between the machines on the dashboard at the top where it says "JOB". You'll be able to select the server you want in the drop down.
@plapbandit
@plapbandit 4 жыл бұрын
Well, this is way sexier than it has any business being
@DBTechYT
@DBTechYT 4 жыл бұрын
Right?!
@CodySmiley
@CodySmiley 2 жыл бұрын
No info in descryption.
@DBTechYT
@DBTechYT 2 жыл бұрын
Seriously? There's a link right near the top of the description that has all the info you need that I can't put in the description because KZbin restricts what kind of stuff I can put in there.
@CodySmiley
@CodySmiley 2 жыл бұрын
@@DBTechYT When typing the command you said you could find it in the description, but there is nothing there (except a link with yml without a description of what it is).
@DBTechYT
@DBTechYT 2 жыл бұрын
This is in the description: /===========/ I've been wanting to get into Grafana dashboards for a while, so here we go! This is much easier to setup than I originally thought it would be and we can do it in about 5 steps. Updated information here: dbt3ch.com/books/prometheus-grafana-dashboard /===========/ If you click that link, you'll be taken to a page that says: /===========/ Prometheus / Grafana Dashboard After you've created the prometheus.yml file and have deployed the docker-compose, the rest of the steps are as follows: - Select DataSource on home page. Select Prometheus. - Search for: "node exporter grafana dashboards" on Google - Look for results on grafana.com - Find ID of the dashboard you like (This is the dashboard I like: grafana.com/grafana/dashboards/11074) - Import ID in Grafana /===========/ With further information of the content of both files listed below. How could I POSSIBLY make it easier? I can't put all the information in a KZbin video description. KZbin won't let me. So I set up a website/repository of information for viewers to get the detailed information that KZbin won't let me put in the video descriptions. This is the same method that lots of creators use to help their viewers get the information they need. Wanna know what some other creators do? NOTHING. They leave NOTHING in the description and expect the viewer to go find the information for themselves. And, I can say this with 100% honesty, in the couple of years of doing this you are the only one who seems to take issue with it.
@DBTechYT
@DBTechYT 2 жыл бұрын
If I put a link in the description and you acknowledge the link but refuse to click it to get the additional information that is disclosed in the text before the link... I'm just lost on what you think the solution is...
@987we3
@987we3 11 ай бұрын
Wow hello again
@DBTechYT
@DBTechYT 11 ай бұрын
👋
@johndoudar6395
@johndoudar6395 2 жыл бұрын
is this info still valid??
@podakira
@podakira 4 жыл бұрын
There is a fantastic tool in SSH : bpytop
@DBTechYT
@DBTechYT 4 жыл бұрын
Just tried it on 2 different systems and got this result each time: -bash: bpytop: command not found
@podakira
@podakira 4 жыл бұрын
@@DBTechYT github.com/aristocratos/bpytop "Install python3 and git with a package manager of you choice Install psutil python module (sudo might be required) python3 -m pip install psutil"
@BartmanMoto
@BartmanMoto 3 жыл бұрын
Hey man, how can i add my ext USB hdd mountpoint is /dev/sda1..... i cant finde a possibility
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Monitoring Linux Host Metrics with Prometheus | Node Exporter (Setup, Scrape, Query, Grafana)
10:21
Prometheus Monitoring with Julius | PromLabs
Рет қаралды 19 М.
Server Monitoring // Prometheus and Grafana Tutorial
24:36
Christian Lempa
Рет қаралды 705 М.
Access Your Self Hosted Services WITHOUT Port Forwarding
18:14
Homelab upgrade: New Raspberry Pi Cluster rackmount
14:44
Jeff Geerling
Рет қаралды 579 М.
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН