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

Release history Release notifications

Download files

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

Files for pytelegraf-exec, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pytelegraf_exec-0.1.2-py2.py3-none-any.whl (3.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page