Question

I'd like to interface with an opentsdb data store with Python. I only see a java client library for it. How would I go about this?

Was it helpful?

Solution 3

Give that library a try.

Twisted Python OpenTSDB Client

http://code.google.com/p/totsdb/source/browse/tostdb.py

OTHER TIPS

Unless you want a standalone client (in which case the Twisted Python OpenTSDB Client looks great), the easiest way is to run tcollector, and simply drop your Python script under /usr/local/tcollector/collector/0 – your script is expected to never return and print one data point per line in that format: metric timestamp value tag1=value1 tag2=value2 ....

tcollector takes care of connecting to OpenTSDB, pushing your data points out, etc. So you can focus on collecting the data you want to collect and write your data collection script in Python or any other scripting language you may like.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top