Skip to content

Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.

License

Notifications You must be signed in to change notification settings

io-developer/apcupsd_exporter

 
 

Repository files navigation

apcupsd_exporter Build Status GoDoc Docker Automated build

Command apcupsd_exporter provides a Prometheus exporter for the apcupsd Network Information Server (NIS). MIT Licensed.

Docker

Docker Hub repository

iodeveloper/prom_apcupsdexporter

Usage

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")

Docker

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"

Sample

Here is a screenshot of an example grafana dashboard (/examples/grafana-dashboard.json) using metrics from apcupsd_exporter.

Grafana 1

Grafana 2

About

Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.5%
  • Other 1.5%