HON95 / prometheus-nut-exporter

A Prometheus exporter for Network UPS Tools (NUT)
GNU General Public License v3.0
93 stars 17 forks source link

Wouldn't run unless I uncommented the settings under "Defaults" #32

Open zvarnes opened 1 year ago

zvarnes commented 1 year ago

I wasn't able to get this working until I uncommented the "Default" settings, which isn't stated anywhere. Just thought it might be worth updating so others don't spend several hours like me trying to get this to work!

This is what worked for me:

nut-exporter:

Stable v1

image: hon95/prometheus-nut-exporter:1 container_name: nut-exporter environment:

  • TZ=$TZ
  • HTTP_PATH=/metrics

    Defaults

  • RUST_LOG=info
  • HTTP_PORT=9995
  • HTTP_PATH=/nut
  • LOG_REQUESTS_CONSOLE=false
  • PRINT_METRICS_AND_EXIT=false