# coding: utf-8 import telegraf def telegraf_init(arg_host, arg_port, arg_tags): #global telegraf_client #global_tags = {'host' : "lijia", 'local_ip_addr': "127.0.0.1"} telegraf_client = telegraf.TelegrafClient(host = arg_host, port = arg_port, tags = arg_tags) return telegraf_client