Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonjza/nutstat
🔌 a Network UPS Tools (NUT) to InfluxDB exporter, written in Go
https://github.com/leonjza/nutstat
docker grafana influxdb monitor nut ups
Last synced: 3 months ago
JSON representation
🔌 a Network UPS Tools (NUT) to InfluxDB exporter, written in Go
- Host: GitHub
- URL: https://github.com/leonjza/nutstat
- Owner: leonjza
- License: mit
- Created: 2019-10-28T23:12:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T04:27:26.000Z (about 5 years ago)
- Last Synced: 2024-05-02T05:05:58.060Z (9 months ago)
- Topics: docker, grafana, influxdb, monitor, nut, ups
- Language: Go
- Size: 20.5 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nutstat
A simple Network UPS Tools (NUT) to InfluxDB exporter.
## why
To build myself a neat Grafana dashboard like this...
![](https://i.imgur.com/dsTc0lg.png)
## usage
I use this with docker, but using docker-compose. If you want to check your configuration, do something like this:```bash
docker run --rm -v $(pwd)/nutstat.yml:/config/nutstat.yml --network stats nutstat:local --config /config/nutstat.yml check
```This `docker-compose.yml` should be good to get you started. You need `nutstat.yml` to be configured with your values. After saving both, start importing stats with `docker-compose up --build -d`.
```yml
version: "3"
services:
nutstat:
build:
context: https://github.com/leonjza/nutstat.git
dockerfile: Dockerfile
image: nutstat:local
command: --config /config/nutstat.yml update
container_name: nutstat
volumes:
- ./config/nutstat.yml:/config/nutstat.yml
restart: unless-stopped
networks:
- statsnetworks:
stats:
external: true
```