https://github.com/jzck/prometheus-upsc-exporter
:electric_plug: Network UPS Tools exporter
https://github.com/jzck/prometheus-upsc-exporter
exporter grafana nut prometheus ups upsc
Last synced: 9 days ago
JSON representation
:electric_plug: Network UPS Tools exporter
- Host: GitHub
- URL: https://github.com/jzck/prometheus-upsc-exporter
- Owner: jzck
- Created: 2019-07-14T13:48:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T15:46:56.000Z (over 5 years ago)
- Last Synced: 2025-05-06T09:58:26.731Z (15 days ago)
- Topics: exporter, grafana, nut, prometheus, ups, upsc
- Language: Awk
- Homepage:
- Size: 2.93 KB
- Stars: 14
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prometheus_upsc_exporter
lightweight docker build for exporting nut's `upsc` into prometheus.
container listens on `:9614`
# Examples
## simplest docker run example
`docker run -p9614:9614 -d jzck/upsc-exporter -e UPS_TARGET=ups@localhost --network=host`
Make sure an `upsd` server is running on the host so that `upsc` can contact it.
## docker-compose with nut-upsd server
basic compose setup with `upshift/nut-upsd`
```
services:
nut-upsd:
image: upshift/nut-upsd
user: root
restart: unless-stopped
privileged: true
expose:
- 3493
environment:
- "SHUTDOWN_CMD=shutdown -h now"
- "API_USER=upsmon"
- "API_PASSWORD=secret"prom-upsc:
image: jzck/upsc-exporter
restart: unless-stopped
depends_on:
- nut-upsd
environment:
- "UPS_TARGET=ups@nut-upsd:3493"
expose:
- 9614
```Can also be used with another `upsd`, just make sure the container can see the