/telegraf-unixsocket-python-client

A tiny and very limited python client to send metrics to telegraf through an unix socket

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

telegraf-unixsocket-python-client

Status

GitHub CI License

What is it ?

A tiny and very limited python client to send metrics to telegraf through an unix socket

Example

from telegraf_unixsocket_client import TelegrafUnixSocketClient

client = TelegrafUnixSocketClient("/tmp/telegraf.socket")
client.connect()
client.send_measurement("foo", {"field1": 1.23, "field2": 4.56})
client.close()

Notes

This repository includes some MIT licensed code about influxdb line protocol borrowed from the influxdb-python project.