An open API service indexing awesome lists of open source software.

https://github.com/facelessfish/hw_sensors_exporter

Lightweight Prometheus exporter for OpenBSD hw.sensors data written is ksh.
https://github.com/facelessfish/hw_sensors_exporter

ksh openbsd prometheus prometheus-exporter

Last synced: 24 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.