Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poogles/ohesteebee

Python OpenTSDB client
https://github.com/poogles/ohesteebee

Last synced: 4 days ago
JSON representation

Python OpenTSDB client

Awesome Lists containing this project

README

        

### ohesteebee

A pythonic OpenTSDB client to send and receive time series data.

#### Examples

##### Get.

```
from ohesteebee import Ostb

ostb = Ostb(host="ostb.local", port="8080")

# Defaults to a 1h window from now with no tags.
ostb.get('system.load.1')

# Add a lookback of either a timedelta or a value + y/m/d/h/m/s.
ostb.get('system.load.1', lookback="1d")
```

##### Put.
```
from ohesteebee import Ostb

ostb = Ostb(host="ostb.local", port="8080")

# Put takes any series of kwargs as tags.
ostb.put('system.load.1', 1.1, foo=bar, baz=qux)
```