While testing collecting form an APC UPS using the default generator.yml
apcups:
version: 1
walk:
- sysUpTime
- interfaces
- 1.3.6.1.4.1.318.1.1.1.2.3 #upsHighPrecBattery
- 1.3.6.1.4.1.318.1.1.1.2 # upsBattery
- 1.3.6.1.4.1.318.1.1.1.3 # upsInput
- 1.3.6.1.4.1.318.1.1.1.4 # upsOutput
- 1.3.6.1.4.1.318.1.1.1.7.2 # upsAdvTest
- 1.3.6.1.4.1.318.1.1.1.8.1 # upsCommStatus
- 1.3.6.1.4.1.318.1.1.1.12 # upsOutletGroups
- 1.3.6.1.4.1.318.1.1.10.2.3.2 # iemStatusProbesTable
- 1.3.6.1.4.1.318.1.1.26.4.3 # rPDU2DeviceStatusTable
- 1.3.6.1.4.1.318.1.1.26.6.3 # rPDU2PhaseStatusTable
- 1.3.6.1.4.1.318.1.1.26.8.3 # rPDU2BankStatusTable
- 1.3.6.1.4.1.318.1.1.26.10.2.2 # rPDU2SensorTempHumidityStatusTable
lookups:
- source_indexes: [upsOutletGroupStatusIndex]
lookup: upsOutletGroupStatusName
drop_source_indexes: true
- source_indexes: [iemStatusProbeIndex]
lookup: iemStatusProbeName
drop_source_indexes: true
overrides:
ifType:
type: EnumAsInfo
rPDU2BankStatusLoadState:
type: EnumAsStateSet
upsAdvBatteryCondition:
type: EnumAsStateSet
upsAdvBatteryChargingCurrentRestricted:
type: EnumAsStateSet
upsAdvBatteryChargerStatus:
type: EnumAsStateSet
It errors out with
An error has occurred while serving metrics:
107 error(s) occurred:
* collected metric "upsHighPrecBatteryCartridgeIndex" {
label:<name:"upsHighPrecBatteryCartridgeIndex" value:"1" >
label:<name:"upsHighPrecBatteryPackIndex" value:"8" > gauge:<value:2 > }
was collected before with the same name and label values
* collected metric "upsHighPrecBatteryPackTemperature" {
label:<name:"upsHighPrecBatteryCartridgeIndex" value:"1" >
label:<name:"upsHighPrecBatteryPackIndex" value:"6" > gauge:<value:0 > }
was collected before with the same name and label values
* collected metric "upsHighPrecBatteryCartridgeIndex" {
label:<name:"upsHighPrecBatteryCartridgeIndex" value:"1" >
label:<name:"upsHighPrecBatteryPackIndex" value:"3" > gauge:<value:2 > }
was collected before with the same name and label values
......
If I comment out
- 1.3.6.1.4.1.318.1.1.1.2.3 #upsHighPrecBattery
And regenerate it will work but I'm not getting the battery info. If I
use a standard mib browser tool there is data in those fields.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/ea806d49-16cd-4c21-888f-546201d474c9n%40googlegroups.com.