Subject: [InfluxData Community] [Collect] Telegraf snmp - multiple fields with different tags


What I think you want to do here is use the `table` functionality, for each item in the table a metric will be created tagged by the index.  You can use table fields to modify the names and tag status of specific entries.  All fields in the table are always collected, but if you don't want a specific entry you can use `fielddrop` (or tagdrop for excluding certain interfaces):

```toml
[[inputs.snmp]]

  fielddrop = ["ifPhysAddress"]

  [[inputs.snmp.field]]
    name = "hostname"
    oid = "RFC1213-MIB::sysName.0"
    is_tag = true

  [[inputs.snmp.table]]
    name = "interface"
    oid = "IF-MIB::ifTable"
    inherit_tags = ["hostname"]

    [[inputs.snmp.table.field]]
      oid = "IF-MIB::ifDescr"
      is_tag = true
```

If you have lots of interfaces and only want a very small number of OIDs collected, then @MarcV's suggestion might work better.

---