Hello,

Den mån 13 okt. 2025 kl 18:48 skrev Jseb Tarot <[email protected]>:
>
> Why to scrap all mib.scrap only the value needed!. Personnaly a select branch 
> needed and that it.
>
> I recommande to do that.

To be clear I'm only scraping a few(30) OIDs. Something like this:

time for i in 1.3.6.1.2.1.25.1.1 1.3.6.1.2.1.2.2.1.8
1.3.6.1.2.1.2.2.1.1 1.3.6.1.2.1.31.1.1.1.1 1.3.6.1.2.1.31.1.1.1.18
1.3.6.1.2.1.2.2.1.2 (and so on); do snmpbulkwalk -v2c -Cr10 -On -c
community 192.0.2.2 $i; done

takes about 4-10s, while snmp_exporter with the following
generator.yml takes at least 40, and up to 90+ seconds:

  my-switch:
    walk:
      - hrSystemUptime          # 1.3.6.1.2.1.25.1.1
      - ifOperStatus            # 1.3.6.1.2.1.2.2.1.8
      - ifIndex                 # 1.3.6.1.2.1.2.2.1.1
      - ifName                  # 1.3.6.1.2.1.31.1.1.1.1
      - ifAlias                 # 1.3.6.1.2.1.31.1.1.1.18
      - ifDescr                 # 1.3.6.1.2.1.2.2.1.2
      - (and so on...)

    timeout: 30s
    max_repetitions: 10
    lookups:
      - source_indexes: [ifIndex]
        lookup: ifDescr
      - source_indexes: [ifIndex]
        lookup: ifAlias
      - source_indexes: [ifIndex]
        lookup: ifName

Regards,
Wilhelm

-- 
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/CAK8ArgO4489U6UJpsodJyCXY8eY03ShkL62VxvH6a3B-04_0_g%40mail.gmail.com.

Reply via email to