I am new to TICK stack and exploring telegraf collection and ingesting in InfluxDB, my use case is to collect metrics from remote network device using snmp plugin. Being new struggling to understand section of the below snippet is creating a new measurement in Influx, also how can I configure config file to make hostname and ifName as tags and fields, have them created in one point rather different points of same measurement.
[[inputs.snmp]]
agents = [ “ip addr” ]
version = 2
community = “public”
name = “snmp_test”
[[inputs.snmp.field]]
name = “hostname”
oid = “RFC1213-MIB::sysName.0”
is_tag = true
[[inputs.snmp.table]]
name = “snmp_test”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifXTable”
[[inputs.snmp.table.field]]
name = “ifName”
oid = “IF-MIB::ifName”
is_tag = true
[[inputs.snmp.table.field]]
name = “ifOperStatus”
oid = “IF-MIB::ifOperStatus”