You are here: Home / LBN / Up2date / Cloud Computing / BastionLinux 19 / python-potsdb-0.0.7-1.lbn19.noarch

python-potsdb-0.0.7-1.lbn19.noarch

Package Attributes
RPM  python-potsdb-0.0.7-1.lbn19.noarch.rpm Architecture  noarch Size  31862 Created  2019/09/30 06:52:37 UTC
Package Specification
Summary A Python client for OpenTSDB which creates a separate thread for TCP communication.
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/p/potsdb/potsdb-0.0.7.tar.gz
Description

Python client to OpenTSDB

This was designed with a long running parent program in mind, where sending metrics was something that happens on the side. Implemented such that sending the metric "put" message to the Time Series Database API does not block the calling application. This is achieved by creating a background worker thread which takes metrics off the Queue, then sending them on a TCP socket to HOST. The client.log method simply sets up and puts the metric on the Queue, then returns.

When the client object is instantiated, a temporary socket is created to the target HOST, PORT combination to check for connectivity. This may fail with a timeout error. However if the background thread encounters socket communication problems like timeout further down the line (in the sending metrics loop) then it will silenty keep trying to reconnect forever.

Keep in mind that if you send a bunch of metrics through .log then immediately quit, the background thread will also terminate, without having had enough time to send your metrics properly.

Rate limiting for sending metrics over TCP is by default set to 100 Metrics Per Second. This can be overwritten upon instantiation.

Requires
python  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
python-potsdb

Document Actions