Telegraf SNMP data collection

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.

agents = [ “ip addr” ]
version = 2
community = “public”
name = “snmp_test”
name = “hostname”
oid = “RFC1213-MIB::sysName.0”
is_tag = true
name = “snmp_test”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifXTable”
name = “ifName”
oid = “IF-MIB::ifName”
is_tag = true
name = “ifOperStatus”
oid = “IF-MIB::ifOperStatus”