Nominal Output Voltage always 0 / more values
jangrewe opened this issue · 2 comments
Hi, i found your exporter while searching for a way to get our new UPS integrated into our Prometheus/Grafan setup, and it was a breeze to get working.
Unfortunately the nominal output voltage (NOMOUTV) is always shown as 0, although it's shown correctly by apcaccess status
.
Here's the output from your exporter:
apcupsd_battery_charge_percent{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 99
apcupsd_battery_cumulative_time_on_seconds_total{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 37
apcupsd_battery_nominal_volts{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 0
apcupsd_battery_number_transfers_total{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 1
apcupsd_battery_time_left_seconds{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 11640
apcupsd_battery_time_on_seconds{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 0
apcupsd_battery_volts{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 109.6
apcupsd_line_nominal_volts{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 0
apcupsd_line_volts{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 231.6
apcupsd_ups_load_percent{hostname="srv-kvm-01",model="Smart-UPS SRT 3000",ups_name="APC UPS"} 3.6
And this is was apcaccess status
gives me:
APC : 001,039,0922
DATE : 2017-04-10 15:49:48 +0200
HOSTNAME : srv-kvm-01
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : APC UPS
CABLE : Custom Cable Smart
DRIVER : MODBUS UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-04-10 15:45:26 +0200
MODEL : Smart-UPS SRT 3000
STATUS : ONLINE
LINEV : 233.0 Volts
LOADPCT : 3.6 Percent
LOADAPNT : 5.0 Percent
BCHARGE : 99.0 Percent
TIMELEFT : 196.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
OUTPUTV : 229.6 Volts
DWAKE : 0 Seconds
DSHUTD : 0 Seconds
ITEMP : 23.0 C
BATTV : 109.6 Volts
LINEFREQ : 50.0 Hz
OUTCURNT : 0.62 Amps
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : OK
STATFLAG : 0x05000008
MANDATE : 2016-10-01
SERIALNO : AS1639392379
BATTDATE : 2013-01-01
NOMOUTV : 230 Volts
NOMPOWER : 2700 Watts
NOMAPNT : 3000 VA
FIRMWARE : UPS 05.3 / 00.5
END APC : 2017-04-10 15:50:39 +0200
And a feature request: also export the output current (OUTCURNT), internal temperature (ITEMP), line frequency (LINEFREQ) and output voltage (OUTPUTV) values.
Thanks!
Hello! It appears my UPSes do not expose this information (I'm using the simple USB models), so it isn't accounted for at all in my parsing package or this Prometheus exporter.
The functionality you want would need to be added to: https://github.com/mdlayher/apcupsd.
I'd happily accept PRs there.
Just found this, but i don't have access to that UPS anymore (just my private one now), so i'll close it for now...