I was hoping to do this in the exporter, but otherwise I can do it easily 
enough with a relabel config on the scrape.


On Tuesday, April 15, 2025 at 6:20:59 AM UTC-7 Elliott Balsley wrote:

> I have an SNMP device which returns a table of sensors, including columns 
> for left fan and right fan speed.  After applying a lookup in the 
> generator, the metrics look like this:
> unit_fan_left{ledStatusUnitPortId="1",ledStatusUnitUnitId="1"} 1450
> unit_fan_right{ledStatusUnitPortId="1",ledStatusUnitUnitId="1"} 1449
>
> Is it possible to combine these into one metric with a fan label like this?
> unit_fan{ledStatusUnitPortId="1",ledStatusUnitUnitId="1", fan="left"} 1450
> unit_fan{ledStatusUnitPortId="1",ledStatusUnitUnitId="1", fan="right"} 1449
>
>

-- 
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 visit 
https://groups.google.com/d/msgid/prometheus-users/0a558463-6f7d-40c9-86c1-0e5e59604c17n%40googlegroups.com.

Reply via email to