Skip to main content

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


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

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

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page