mdlayher / apcupsd_exporter

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

Exporter returns zero values instead of no data when UPS is disconnected #27

Open WGH- opened 3 months ago

WGH- commented 3 months ago

When UPS is disconnected, apcupsd_exporter returns zero metrics (e.g. apcupsd_line_volts{ups="foobar"} 0) instead of returning error or just omitting missing metrics values, which pollute Prometheus with bogus data.