mdlayher / apcupsd_exporter

Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.
MIT License
153 stars 65 forks source link

Please can you provide some build instructions #21

Closed squeeb closed 2 years ago

squeeb commented 2 years ago

I don't have much Go experience, but trying to build this locally just ends up with all sorts of errors. I'm definitely not doing something right. Please can you provide some build instructions in your README?

mdlayher commented 2 years ago
✔ ~/src/github.com/mdlayher/apcupsd_exporter [main|…1] 
16:57 $ go build ./cmd/apcupsd_exporter
✔ ~/src/github.com/mdlayher/apcupsd_exporter [main|…1] 
16:57 $ ./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")