micha37-martins / S.M.A.R.T-disk-monitoring-for-Prometheus

Prometheus node_exporter text_collector for S.M.A.R.T disk values
Apache License 2.0
92 stars 26 forks source link

Output smart_metrics.prom #8

Closed mentex23 closed 2 years ago

mentex23 commented 2 years ago

hello,

my output from smart_metrics.prom looks like this:

# HELP smartmon_smartctl_version SMART metric smartctl_version
# TYPE smartmon_smartctl_version gauge
smartmon_smartctl_version{version="7.2"} 1

Granfana shows no data for my disks. I have some other things running fine, so I guess the general setup is working. I have no idea what am I doing wrong with this node_exporter. All the things are running on a raspberry pi4 with debian 11. Prometheus runs as docker an and the node_exporter was installed liked described here:

https://linuxhit.com/prometheus-node-exporter-on-raspberry-pi-how-to-install/

Please give me an hint how to get this working.

thanks

EDIT: Found my mistake.. I have to put it in the crontab of root, so I have to run sudo crontab -e