snmp_exporter icon indicating copy to clipboard operation
snmp_exporter copied to clipboard

config: allow setting default auth via YAML using `default: true`

Open nehro-em opened this issue 6 months ago • 4 comments

Adds support for marking an SNMP auth block as the default by specifying default: true in the YAML configuration. When present, the marked auth is assigned to DefaultAuth and used wherever a default is needed. If multiple auths are marked as default, an error is returned.

This makes the default behavior configurable without code changes.

nehro-em avatar Jul 01 '25 11:07 nehro-em

Hello @nehro-em ,

in order to get this PR merged you'd need to sign the commit - once thats done i'm happy to approve the changes and merge it .

Thx for your contribution!

bastischubert avatar Jul 25 '25 21:07 bastischubert

Merge to branch main

nehro-em avatar Jul 26 '25 15:07 nehro-em

DCO still missing: https://github.com/prometheus/snmp_exporter/pull/1454/checks?check_run_id=46840852645

bastischubert avatar Jul 28 '25 08:07 bastischubert

This needs a DCO sign-off. You can use git commit -s --amend to add it.

SuperQ avatar Jul 31 '25 07:07 SuperQ