Sorry, I see you already posted your snmp_exporter version (0.20.0).  
regex_extracts has been around since 2017 so you should have it.

It doesn't do any harm to try a newer version of snmp_exporter, but beware 
that in v0.23.0 the config file format changed, separating out "modules" 
and "auths".

On Wednesday, 22 November 2023 at 12:29:35 UTC Brian Candler wrote:

> "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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ffff9105-cde0-483d-8f03-f49e36f11219n%40googlegroups.com.

Reply via email to