On Thursday, 20 March 2025 at 13:55:29 UTC [email protected] wrote:

Wonder if there is a JSON to prometheus 


Recent versions of smartctl have a -j flag. But it's still up to you to 
parse out the info to make meaningful metrics; you'd have to decide how to 
flatten the nested structure, which fields are to be used as labels, and so 
on.

> the lack of a go compiler is hampering

No need to compile anything, there are published binaries:
https://github.com/prometheus-community/smartctl_exporter/releases
Note that you have to click "show all assets" for the Linux ones to be 
shown, e.g. smartctl_exporter-0.13.0.linux-amd64.tar.gz 
<https://github.com/prometheus-community/smartctl_exporter/releases/download/v0.13.0/smartctl_exporter-0.13.0.linux-amd64.tar.gz>

Go binaries are statically linked (usually):

# ldd smartctl_exporter
not a dynamic executable
#

Hence you can copy this to, and run it on, any Linux system of your choice. 
No SUSE-specific packaging is required, although you might want to install 
a systemd unit file to run it.  A sample is provided here:
https://github.com/prometheus-community/smartctl_exporter/tree/master/systemd

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/f99fff23-600a-4e5d-939a-45988cc0bc8bn%40googlegroups.com.

Reply via email to