Skip to content

Docker image to fetch data from a NUT UPS server and push it to an InfluxDBv2 bucket.

License

Notifications You must be signed in to change notification settings

jwillmer/nut-influxdbv2

 
 

Repository files navigation

nut-influxdbv2

Docker image to pulls data from a NUT server and push it to an InfluxDB bucket. Based on work of mihai-cindea and dbsqp.

Docker Image

The docker image is available on https://hub.docker.com/r/jwillmer/nut-influxdbv2

Environment variables with default values

Only setting INFLUXDB2_TOKEN is required if the default values are sufficient and your UPS outputs ups.realpower.nominal.

Variable Name Default Value Required Note
INFLUXDB2_HOST localhost
INFLUXDB2_PORT 8086
INFLUXDB2_ORG Home
INFLUXDB2_TOKEN true
INFLUXDB2_BUCKET DEV
INFLUXDB2_SSL false Default assumes HTTP connection
INFLUXDB2_SSL_VERIFY false Default will validate HTTPS certificates and throw an error if invalid
INFLUXDB2_MEASUREMENT ups_status Measurment name in InfluxDB
NUT_HOST 127.0.0.1
NUT_PORT 3493
NUT_PASSWORD
NUT_USERNAME
WATTS true Only required if UPS does not output ups.realpower.nominal
UPS_NAME UPS Defined name of the UPS in NUT
INTERVAL 21 How often the UPS gets queried in seconds

Source Code

The source code is available on https://github.com/jwillmer/nut-influxdbv2

Unraid

This image is referenced in the Unraid community store. The support thread can be found at forums.unraid.net/topic/130458-support-nut-influxdbv2-exporter and the template for the image can be found in the template repository. Regular users don't have to care about the template, the reference is only interesting to developers.

Grafana

A good dashboard for the collected data can be found with the dashboard id 7233. grafana dasboard 7233

About

Docker image to fetch data from a NUT UPS server and push it to an InfluxDBv2 bucket.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.9%
  • Dockerfile 9.3%
  • Shell 3.8%