Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 709 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 709 Bytes

kairosdb-python-client

Python client for KairosDB. Very alpha stage! Build Status

Installation

TODO

Getting Started

TODO

Examples

Query data points

To query datapoints, we create a query

client = KairosDBRestClient()
client.query(1448019060000, 1448019560000, metrics=[
    Metric('my.test.metric').tag(host=['amazon', 'azure']).group_by(tags=['host']).aggregate(avg=(1, 'hours'))
])

or shorter

client[1448019060000:1448019560000:AvgAggregator(1,'hours'), 'my.test.metric'].tag(host=['amazon', 'azure']).group_by(tags=['host']).query()