Command apcupsd_exporter
provides a Prometheus exporter for the
apcupsd Network Information Server (NIS).
MIT Licensed.
iodeveloper/prom_apcupsdexporter
Available flags for apcupsd_exporter
include:
$ ./apcupsd_exporter -h
Usage of ./apcupsd_exporter:
-apcupsd.addr string
address of apcupsd Network Information Server (NIS) (default ":3551")
-apcupsd.network string
network of apcupsd Network Information Server (NIS): typically "tcp", "tcp4", or "tcp6" (default "tcp")
-telemetry.addr string
address for apcupsd exporter (default ":9162")
-telemetry.path string
URL path for surfacing collected metrics (default "/metrics")
https://hub.docker.com/r/iodeveloper/prom_apcupsdexporter
iodeveloper/prom_apcupsdexporter:latest
docker-compose.yml example:
version: '3.4'
services:
apcupsd-home-main:
image: iodeveloper/prom_apcupsdexporter:latest
user: root
privileged: true
restart: unless-stopped
network_mode: "host"
command: /apcupsd_exporter -apcupsd.addr="0.0.0.0:3551" -telemetry.addr="172.101.0.1:10001"
apcupsd-home-server:
image: iodeveloper/prom_apcupsdexporter:latest
user: root
privileged: true
restart: unless-stopped
network_mode: "host"
command: /apcupsd_exporter -apcupsd.addr="0.0.0.0:3552" -telemetry.addr="172.101.0.1:10002"
Here is a screenshot of an example grafana dashboard (/examples/grafana-dashboard.json) using metrics from
apcupsd_exporter
.