influxdata / influxdata/telegraf
Better way to retrieve snmp setting for ifName plugin
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 17.8k
- Forks
- 5.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 161
Description
## Feature Request
Opening a feature request kicks off a discussion.
As discussed in https://github.com/influxdata/telegraf/pull/7763#issuecomment-676801651
### Proposal:
Make it possible some way to retrieve the community string (and other snmp config) directly from the config set for the `snmp` input.
### Current behavior:
Community string (and other snmp config) needs to be configured in `ifName` plugin as well
### Desired behavior:
Let `ifName` plugin figure out from which plugin the metric comes and use the config from that plugin if possible.
### Use case:
Usually each device (or group of devices) has its own specific community string and that would make a huge config even more huge.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the discussion in pull request #7763 and inspect how the snmp input and ifName plugin currently receive their configuration. Determine how ifName could identify the originating plugin and reuse its community string or other SNMP settings. Done means device-specific SNMP configuration no longer needs to be duplicated in ifName while existing behavior remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100