Skip to main content

Description

A TCP/UDP Telegraf/InfluxDB client for Twisted using the Influx Line Format.

Tested with Telegraf 1.0.1 and Twisted 15.1.0 on Python 2.7.10.

Please let me know success/failures testing with other versions of Telegraf/Influx, Twisted, and Python.

How To

Add the following to your Telegraf config.

# Generic TCP listener
[[inputs.tcp_listener]]
service_address = ":8094"
allowed_pending_messages = 10000
max_tcp_connections = 250
data_format = "influx"

# Generic UDP listener
[[inputs.udp_listener]]
service_address = ":8092"
allowed_pending_messages = 10000
data_format = "influx"

# This output is good for testing. Point it at Influx DB otherwise!
[[outputs.file]]
files = ["stdout", "metrics.out"]
data_format = "influx"

Run telegraf

telegraf -config telegraf.conf

Clone the repo and run the example

git clone https://github.com/offero/txtelegraf.git
cd txtelegraf
pip install .
python examples/client.py

Release files for txtelegraf 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for txtelegraf 0.3.0
File Size Uploaded
txtelegraf-0.3.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for txtelegraf 0.3.0
File Interpreter ABI Platform
txtelegraf-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / txtelegraf-0.3.0.tar.gz

Download URL txtelegraf-0.3.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b94674b65e5a73c761a8cafb983516a108ccd23bd108a1dffdffb979362eace9
BLAKE2b-256 checksum
How to use checksums
da934ffd80c0aeab25e138b70db69e0fcc92477b05fcfacbef6da53895f495c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Release files / txtelegraf-0.3.0-py3-none-any.whl

Download URL txtelegraf-0.3.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2e44b1033caab4cb2502ef88c5b32e29463ec491cee2b23db6d5ee374734f13
BLAKE2b-256 checksum
How to use checksums
f9a635030c90af7e6604eeb3dd6122d3159882a9a7d8a4055ae0e497088a04e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page