grafana / agent

Vendor-neutral programmable observability pipelines.
https://grafana.com/docs/agent/
Apache License 2.0
1.56k stars 479 forks source link

fix for panic with snmp exporter from the recent version upgrade #6921

Closed erikbaranowski closed 1 month ago

erikbaranowski commented 1 month ago

PR Description

Which issue(s) this PR fixes

Fixes #6918

Notes to the Reviewer

This was validated as fixed by reproducing the error on main and then validating the fix on this branch with the following config (thanks @ptodev):

server:
  log_level: debug
integrations:
  snmp:
    enabled: true
    scrape_interval: 1m
    scrape_timeout: 30s
    snmp_targets:
      - name: testing
        address: demo.pysnmp.com
        module: if_mib
        auth: public_v2

PR Checklist