IP Adress as Tag in Telegraf

Is there a simple way to get current IP adress of the host and assign it as a global tag using telegraf for both windows and linux platforms?