influxdata / influxdata/telegraf

Deprecate `processors.ifname` plugin

Open
#16,152 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request help wanted
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

### Use Case

With the addition of the `processors.snmp_lookup`, the `processors.ifname` has become redundant.

### Expected behavior

Users of `processors.ifname` plugin should receive a deprecation warning.

### Actual behavior

No deprecation warning.

### Additional info

The following config will use the same `ifDescr` fallback as `processors.ifname` when there is no `ifName` value on the device.

```toml
[[processors.snmp_lookup]]
agent_tag = "agent"
index_tag = "ifIndex"

[[processors.snmp_lookup.tag]]
oid = ".1.3.6.1.2.1.2.2.1.2"
name = "ifName"

[[processors.snmp_lookup.tag]]
oid = ".1.3.6.1.2.1.31.1.1.1.1"
name = "ifName"
```

```diff
- foo,agent=127.0.0.1,ifIndex=2 field=123
+ foo,agent=127.0.0.1,ifIndex=2,ifName=eth0 field=123
```

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 locating the processors.ifname plugin implementation and existing deprecation-warning patterns in the repository. Check the processor's related tests, if present, and verify that configurations using processors.ifname emit a deprecation warning while the replacement processors.snmp_lookup behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.