Associate a Tag SNMP

I have a snmp input below for 2 machines, the first one:
[[Inputs.snmp]]
agents = [“xx.xxx.xx.xx”]
version = 3
auth_protocol = “sha”
auth_password = “xxxxx”
sec_level = “authPriv”
priv_protocol = “AES”
priv_password = “xxxxxx”
sec_name = “xxxxxxxxxx”
max_repetitions = 10
timeout = “250s”
retries = 3

[[Inputs.snmp.table]]

measurement Family Announcements

name = “MRF_Announcements”

[[Inputs.snmp.table.field]]
 name = "cardstatMaxAnnouncements.1"
 oid = "1.3.6.1.4.1.7569.1.2.1.28.1.18

I would like to associate his hostname, is it possible? a tag ? How to implement it

Thanks

Does adding this to your config give you what you need?

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