Associate Hostname and @ip

I get some [inputs.snmp] for collecting oid
the hostname in my input does not appear, only the @ip
is this possible to associate the hostname of the machine with the @ ip ?

or under grafana, to declare for example :slight_smile:
$var1 =,
$var2 =
then in my request to use a variable type table : NodeId = [var1, var2] ?
Thank you