Hello,
I'm currently trying to generate a config for some eaton ups'es. I have following two mibs:
I need everything temperature and humidity available.
I tried it with something like this to get the value and the name, but I'm not able to get both in one metric...
eaton:
walk:
- "1.3.6.1.4.1.534.6.8.1.2.3.1.3" # EATON-SENSOR-MIB:temperatureValue
- "1.3.6.1.4.1.534.6.8.1.2.2.1.1" # EATON-SENSOR-MIB:temperatureName
- "1.3.6.1.4.1.534.6.8.1.3.3.1.3" # EATON-SENSOR-MIB:humidityValue
- "1.3.6.1.4.1.534.6.8.1.3.2.1.1" # EATON-SENSOR-MIB:humidityName
lookups:
- source_indexes: [temperatureIndex]
lookup: "1.3.6.1.4.1.534.6.8.1.2.3.1.3" # EATON-SENSOR-MIB:temperatureValue
- source_indexes: [temperatureIndex]
lookup: "1.3.6.1.4.1.534.6.8.1.2.2.1.1" # EATON-SENSOR-MIB:temperatureName
- source_indexes: [humidityIndex]
lookup: "1.3.6.1.4.1.534.6.8.1.3.3.1.3" # EATON-SENSOR-MIB:humidityValue
- source_indexes: [humidityIndex]
lookup: "1.3.6.1.4.1.534.6.8.1.3.2.1.1" # EATON-SENSOR-MIB:humidityName
It results in something like this:
# HELP humidityName The friendly name of the sensor humidity probe. - 1.3.6.1.4.1.534.6.8.1.3.2.1.1
# TYPE humidityName gauge
humidityName{humidityIndex="1",humidityName="",humidityValue="",sensorIndex="1"} 1
# HELP humidityValue Realtime measured value after correction with the offset - 1.3.6.1.4.1.534.6.8.1.3.3.1.3
# TYPE humidityValue gauge
humidityValue{humidityIndex="1",humidityName="",humidityValue="",sensorIndex="1"} 286
# HELP temperatureName The friendly name of the sensor temperature probe. - 1.3.6.1.4.1.534.6.8.1.2.2.1.1
# TYPE temperatureName gauge
temperatureName{sensorIndex="1",temperatureIndex="1",temperatureName="",temperatureValue=""} 1
# HELP temperatureValue Realtime measured value after correction with the offset - 1.3.6.1.4.1.534.6.8.1.2.3.1.3
# TYPE temperatureValue gauge
temperatureValue{sensorIndex="1",temperatureIndex="1",temperatureName="",temperatureValue=""} 335
Can someone tell me how to avoid having everything double (temperatureName and temperatureValue)? Can it not be compined in one?
And why do I don't have any values in the prometheus labels for the temperatureName?
Many thanks in advance!