Closed Razerban closed 3 years ago
In addition to the details already mentioned, when I connect to the containers inside the pod and try to run /opt/vc/bin/vcgencmd measure_tmp
i get the following error:
/ # /opt/vc/bin/vcgencmd measure_temp
VCHI initialization failed
User details:
/ # whoami
root
/ # groups
root bin daemon sys adm disk wheel floppy dialout tape video
There were some discussions in the original code for the exporter. Check https://github.com/lukasmalkmus/rpi_exporter. Maybe some incompatibility with the Rpi4. I don't have one to test.
Just trying to help. I think it's not incompatibility with rpi4 as I been using it (4 rpis with 4gb each, k3s 18, Ubuntu 18 and 20)
Just to be sure @fonsecas72, the dashboard reports the temperature correctly?
Yup it seems
cat /sys/class/thermal/thermal_zone0/temp
55017
Thanks! @razerbann might be something block the access for Prometheus to collect the metrics in your PIs or something in it's Linux that does not generate the metrics, like missing Kernel modules.
/ # /opt/vc/bin/vcgencmd measure_temp VCHI initialization failed
vgencmd needs access to /dev in the container. This is forbidden by default. You will need to elevate the privileges the container is running with within your POD.
I have submitted a PR for it
Fixed by #97
I can confirm that the issue is no longer present. Thank you for your help !
Describe the bug Cannot get my nodes' metrics using arm-exporter.
Troubleshooting
Customizations
vars.jsonnet
? Put the contents below:What did you see when trying to access Grafana and Prometheus web GUI No data in prometheus and Grafana.
Additional context Logs extracted from
arm-exporter
container running in the pod: