Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwenwwer committed Jul 6, 2021
1 parent aa1e8a4 commit 33b3bc8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# Pwrstat exporter
Cyberpower UPS Linux daemon (pwrstat) exporter for prometheus

## Installation
Must have Linux PowerPanel application from CyberPower already downloaded (https://www.cyberpowersystems.com/product/software/powerpanel-for-linux/)
And make sure the ``pwrstat.service`` has been staring.

### Build from source
**Please install golang 1.16**

Install dep.
```bash
sudo apt install -y libsensors4-dev
git clone https://github.com/kerwenwwer/sensor-exporter.git
cd sensor-exporter/sensor-exporter
go build && mv sensor-exporter /usr/loca/bin/
```

## Usage
Since that ``pwrstat`` require sudo permission so:
```bash
sudo pwrstat-exporter
```
Args
```bash
sudo pwrstat-exporter --web.listen-address 8088 --web.telemetry-path /metrics
```

0 comments on commit 33b3bc8

Please sign in to comment.