influxdata / influxdata/telegraf

Better way to retrieve snmp setting for ifName plugin

Open
#8,010 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/configuration area/snmp feature request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.