On Tue, May 19, 2026 at 07:44:51PM +0000, Romain FABBRI wrote:
> If like me you had trouble with 64 bits counters...
> You can have a lot at my fix : 
> https://codeberg.org/cybercloud/openbsd-snmp-exporter/releases

This seems unrelated to the original question.

That entire repository* is fixing a understanding in the snmp_exporter
config where the metric is defined as "type: counter64":
https://codeberg.org/cybercloud/openbsd-snmp-exporter/src/branch/master/examples/snmp.yml#L32-L35

This should simply be:

      - name: snmp_ifInOctets
        oid: 1.3.6.1.2.1.2.2.1.10
        type: counter

See the converter code at:
https://github.com/prometheus/snmp_exporter/blob/main/generator/tree.go#L162-L163
which correctly maps an SNMP COUNTER64 type to "counter".

*: Which to save anyone else bothering is just a lot of fluff wrapping a
two line change applied by Python code hidden inside a shell script; you
should teach your LLM about diff(1) and patch(1) sometime.

Reply via email to