mdlayher / apcupsd_exporter

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

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

Open WGH- opened 6 months ago

WGH- commented 6 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.

AndrolGenhald commented 2 months ago

@WGH- If you're interested, I just wrote my apcupsd exporter.