A easy to use line format converter for influxdb.
Project description
Description
pytelegraf_exec is used to create telegraf line text which and be passed in to the telegraf exec plugin.
Usage
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
out.print_output()
# You will get something like this in stdout.
# “test,t2=t2,t1=t1 v1=1,v2=v2n”
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pytelegraf_exec-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0413f31759bb89acb67351ea7fac590f60367a06d6efbc224f04da5459a00a |
|
MD5 | a03b63d568813fd265aee1544bf11436 |
|
BLAKE2b-256 | 8ccb857d4feb72b3ec6efa9d7a41b37e4c18145e9bcc12fccce53251c3f6594d |