Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.
- Go 95.8%
- Shell 2.6%
- Dockerfile 1.6%
|
|
||
|---|---|---|
| .forgejo | ||
| cmd/apcupsd_exporter | ||
| vendor | ||
| .gitignore | ||
| apcupsdexporter.go | ||
| apcupsdexporter_test.go | ||
| CODEOWNERS | ||
| Dockerfile | ||
| entrypoint.sh | ||
| go.mod | ||
| go.sum | ||
| LICENSE.md | ||
| README.md | ||
| upscollector.go | ||
| upscollector_test.go | ||
apcupsd_exporter

Command apcupsd_exporter provides a Prometheus exporter for the
apcupsd Network Information Server (NIS). MIT
Licensed.
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")
For running apcupsd_exporter in docker:
Prerequisites:
$ docker run ghcr.io/twodarek/apcupsd_exporter:latest --expose 9162:9162 --env APCUPS_ADDR=<docker_host_ip>:3551
Note: You can trade out latest for a specific commit sha to pin to that commit instead of using the automatically built latest, which will be current with the master branch.
Example Prometheus config
scrape_configs:
- job_name: 'ups'
static_configs:
- targets: ['<docker_host_ip>:9162']
scrape_interval: 1s
scrape_timeout: 1s