Sign inSign up

tnwhitwell/apcups-influx

By tnwhitwell

Updated over 7 years ago

APC UPS data influxDB Publisher

Image
0

1.6K

tnwhitwell/apcups-influx repository overview

apcups-influx

Version Badges relate to Image Size Badge Built Commit Badge

Available on dockerhub: tnwhitwell/apcups-influx

Description

This container will get metrics from apcupsd (via TCP) and publish them to an influxdb server at a specified interval

Environmental Variables

This is a list of Environmental variables, and some sample values:

APCUPSD_URL=upshost:3551
INFLUXDB_DB=UPSData
INFLUXDB_URL=http://influxdb:8086
INFLUXDB_USER= # Leave blank / omit for no username
INFLUXDB_PASS= # Leave blank / omit for no password
READING_INTERVAL=60

Samples to run

docker run

docker run -e APCUPSD_URL=upshost:3551 -e INFLUXDB_DB=UPSData -e INFLUXDB_URL=http://influxdb:8086 -e READING_INTERVAL=60 tnwhitwell/apcups-influx:latest

docker-compose
version: '3'
services:
  influxdb:
    image: influxdb:latest
    restart: always
    volumes:
      - ${CONFIG}/influxdb:/var/lib/influxdb
  apcups-sender:
    image: tnwhitwell/apcups-influx:latest
    restart: always
    environment:
      APCUPSD_URL: upshost:3551
      READING_INTERVAL: 60
      INFLUXDB_DB: UPSData
      INFLUXDB_URL: http://influxdb:8086

docker-compose up

Tag summary

Content type

Image

Digest

Size

2.3 MB

Last updated

over 7 years ago

docker pull tnwhitwell/apcups-influx