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.
- Host: GitHub
- URL: https://github.com/facelessfish/hw_sensors_exporter
- Owner: facelessfish
- License: bsd-2-clause
- Created: 2022-07-06T12:50:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T14:56:05.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T08:54:19.138Z (3 months ago)
- Topics: ksh, openbsd, prometheus, prometheus-exporter
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.