"There is a very similar question description, but its solution doesn't 
work for me:
https://www.robustperception.io/numbers-from-displaystrings-with-the-snmp_exporter/
 "

That's exactly the solution you need (it even shows how to convert string 
values like 'on' and 'off' to 1 and 0), so please be more specific about 
your problem and in what way it "doesn't work".

* say what version of snmp_exporter/generator you're running
* show your generator.yml that you wrote which includes regex_extracts
* show the snmp.yml that it generated
* show the metrics you are getting back from snmp_exporter, and explain in 
what way they are not what you expect or need
* show what snmpwalk gives over the same OID
* if you can, provide the link to the MIB file(s) needed to understand the 
MIB structure and convert your generator.yml

You can find some examples of how to use regex_extracts here:
https://github.com/prometheus/snmp_exporter/blob/v0.24.1/generator/generator.yml#L511-L527

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/06addfbf-f76b-4a3d-83b2-f5971a19d625n%40googlegroups.com.

Reply via email to