Telegraf snmp plugin agent_host_tag, use value instead of hostname in source or another tag

Hi,
I may be missing something here but is there a way to preserve the IP and use it as a tag, instead of or in addition to having it be resolved to hostname1?

[[inputs.snmp]]
  agents = ["1.2.3.4"]
  agent_host_tag = "source"
...

and output

  weather,source=hostname1 temperature=55 1465839830100400200

Thanks!

Ok, keeping agent_host_tag = "agent_host" gives both source and agent_host tag (the IP), just deprecated.

It looks like something else in your config creates a source tag. This is indeed deprecated and the agent IP should be placed in the source tag to be streamlined with the other plugins…

Sorry, you’re right and I was being sloppy. source does the job just fine, except it was being overwritten…