Skip to content

mingcaozhang/pwrstat-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwrstat-exporter

A Prometheus exporter for pwrstat written in Rust.

Prerequisites

Currently, the only supported way to run this is via docker. cargo run may also work if you have pwrstat installed and configured, but it is not guaranteed as some environment setup is required.

Install

git clone https://github.com/mingcaozhang/pwrstat-exporter.git
cd pwrstat-exporter
docker build -t pwrstat-exporter .
docker run -it --name pwrstat-exporter -p 9185:9185 --device=/dev/usb/hiddev0 pwrstat-exporter

You may need to change the device if /dev/usb/hiddev0 is not your UPS.

About

A simple Prometheus metrics exporter for pwrstat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published