This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
lijia-tsg-oam/py_tools/common_telegraf.py

9 lines
302 B
Python

# 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