pytelegraf
pytelegraf copied to clipboard
Python client for sending metrics to Telegraf
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/ ```...
I'm using pytelegraf library but I want to send JSON format to telegraf agent. Is possible to support it? I think the command could be this: client.metric("IMU_Acel",{"x": imu.get_x, "y": imu.get_y(),...
* filter empty or None tags re https://github.com/paksu/pytelegraf/issues/12 * restrict string lengths to 64KiB * write value of t/f rather than true/false
Add an option/client implementation to write the line protocol to a file instead of socket or http request. Useful for debugging, when telegraf agent is down/inaccessible, or just to capture...
Allows the use of with client.timer('some_metric'): with client.timer('some_metric', use_ms=True): @client.timer('some_metric', use_ms=True) def my_function(): pass
https://github.com/paksu/pytelegraf/blob/a5a326bd99902768be2bf10da7dde2dfa165c013/telegraf/client.py#L51 Hello developers, Just wondering can we hv a return value (boolean) in the send() method? Therefore we can at least realise the Telegraf is offline and we can log...
The line protocol doesn't purge None or empty string values from tags. This causes Telegraf to fail parsing the message. For example, for the following code: ``` from telegraf.client import...
Hi! I have added `flake8` command to tox. Also simplified travis config.
Is there a possibility to define Influx database to write measurements to using the TelegrafClient API? Equivalent of "USE dbname"?