Associate Hostname and @ip

Hello,
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 = 10.111.1.1,
$var2 = 10.111.1.2
then in my request to use a variable type table : NodeId = [var1, var2] ?
Thank you