Just a thought, have you tried overriding "type: Float" or "type: Double"?
There are some examples in snmp.yml of this (but not generator.yml AFAICS)
- name: upsInfoTemperature
oid: 1.3.6.1.4.1.6574.4.2.11
type: Float
help: UPS temperature (degrees C) - 1.3.6.1.4.1.6574.4.2.11
On Tuesday, 6 May 2025 at 08:28:31 UTC+1 Elliott Balsley wrote:
> I have a new device that reports its SNMP values as hex byte strings
> encoded using IEEE-754.
> For example the value "423ce042" means 47.219.
>
> This was proposed as a textual convention in RFC6340 but it’s the first
> time I’ve come across it.
> https://www.rfc-editor.org/rfc/rfc6340
>
> As far as I can tell, snmp-exporter cannot decode this format. Would this
> be a worthwhile feature to add, or would I be better off writing a custom
> exporter for this device?
>
> If you’re curious, the device is a cinema calibration tool from HSG Labs.
> https://hsg-labs.com/ultimate.html
>
>
>
--
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/08dc8d10-c43e-4ef7-8719-65a1520606dfn%40googlegroups.com.