outlet/metadata: simplify error message for SNMP GET
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled

Since we don't batch requests anymore, let's just tell which OIDs have a problem.
This commit is contained in:
Vincent Bernat
2025-12-04 16:01:04 +01:00
parent 3b8c3f8c05
commit 0161c6ae31

View File

@@ -87,7 +87,7 @@ func (p *Provider) Poll(ctx context.Context, exporter, agent netip.Addr, port ui
p.metrics.errors.WithLabelValues(exporterStr, "get").Inc()
p.errLogger.Err(err).
Str("exporter", exporterStr).
Msgf("unable to GET (%d OIDs)", len(requests))
Msgf("unable to GET OIDs for index %d", ifIndex)
return err
}