oijkn / Docker-Raspberry-PI-Monitoring

A docker-compose stack solution for monitoring host and containers with Prometheus, Grafana, cAdvisor and NodeExporter.
MIT License
410 stars 61 forks source link

raspberry-pi-docker-monitoring_rev10.json #22

Closed henkiewie closed 1 year ago

henkiewie commented 1 year ago

Hi,

I've been using your dashboard for a long time. And decided to update to the latest iteration on the grafana website. I was still on v6 i think.

All is working except everything that points to rootfs. My Pi is running on a M.2 SSD not from the SDcard. Can this be the problem? I have a normal boot an rootfs on the SSD.

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   256M  0 part /boot
├─sda2        8:2    0  51.2G  0 part /
└─sda3        8:3    0 880.1G  0 part /disks/data
sdb           8:16   0   3.6T  0 disk 
└─sdb2        8:18   0   3.6T  0 part /disks/USB2
sdc           8:32   0 931.5G  0 disk 
└─sdc1        8:33   0 931.5G  0 part /disks/USB1
mmcblk0     179:0    0  58.6G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /media/pi/boot
└─mmcblk0p2 179:2    0  58.3G  0 part /media/pi/rootfs

Maybe I must add that grafana and prometheus are running in it's own docker container.

henkiewie commented 1 year ago

Solved it by mounting /disks:disks inside the node-exporter container so I could query all disks to my dashboard by changing the queries accordingly.