Skip to content

Lightweight Prometheus exporter for OpenBSD hw.sensors data written is ksh.

License

Notifications You must be signed in to change notification settings

facelessfish/hw_sensors_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hw_sensors_exporter

Lightweight, single file Prometheus exporter for OpenBSD hw.sensors data.

It's fully self contained and has no external dependencies other than whats included in the OpenBSD base installation. It is written in sh and uses netcat(nc) to serve the metrics.

Usage

hw_sensors_exporter.sh [-l listening_ip_address] [-p port] [-h]

Installation

Copy the hw_sensors_exporter.sh file somewhere in your PATH (ex. /usr/local/bin/) 
and run it: hw_sensors_exporter.sh &
 
It will start listening for connections on 127.0.0.1 port 9120 by default but you can change that:
hw_sensors_exporter.sh -l 192.168.0.1 -p 9120 &

Notes

It is a bit hacky as I tried to do almost everything in sh to minimize forking.

About

Lightweight Prometheus exporter for OpenBSD hw.sensors data written is ksh.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages