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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file pytelegraf_exec-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytelegraf_exec-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 be0413f31759bb89acb67351ea7fac590f60367a06d6efbc224f04da5459a00a
MD5 a03b63d568813fd265aee1544bf11436
BLAKE2b-256 8ccb857d4feb72b3ec6efa9d7a41b37e4c18145e9bcc12fccce53251c3f6594d

See more details on using hashes here.

Supported by

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