Skip to main content

A easy to use line format converter for influxdb.

Project description


pytelegraf_exec is used to create telegraf line text which and be passed in to the telegraf exec plugin.


import pytelegraf_exec

# Create a new tracker
out = pytelegraf_exec.TelegrafExec(“test”)

# Add your tags that you want. Can be called multiple times
out.add_tags({“t1”:”t1”, “t2”:”t2”})

# Add your values that you want. Can be called multiple times
out.add_values({“v1”:”1”, “v2”:”v2”})

text = out.output()
# You will get a returned line like so
# ‘test,t2=t2,t1=t1 v1=1,v2=v2’
# Or print directly

# You will get something like this in stdout.
# “test,t2=t2,t1=t1 v1=1,v2=v2n”

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

pytelegraf_exec-0.1.2-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page