librato / python-librato

A Python wrapper for the Librato Metrics API.
Other
72 stars 31 forks source link

add support to create composite metrics #87

Closed mauricioborges closed 9 years ago

mauricioborges commented 9 years ago

Hi there,

Actually I haven't seen this being documented on http://dev.librato.com/v1/metrics, so I'm in doubt if it is officially supported. I'd like to persist composite metrics through this client.

nextmat commented 9 years ago

@mauricioborges We definitely support it through the api, here are the docs for that. Do we have support in this client yet @jderrett ?

jderrett commented 9 years ago

@mauricioborges @nextmat we do not yet have support for persisted composite metrics in this library, but we do have basic support for composites on the fly. Maybe something @drio would be interested in adding?

drio commented 9 years ago

Absolutely. I'll work on it.

drio commented 9 years ago

@mauricioborges We pushed a new release that implements what you requested. Now you can do:

  api.create_composite('humidity', 'sum(s("all.*", "*"))', description="a test composite") 

Let us know if you need something else.

mauricioborges commented 9 years ago

awesome! many thanks. Actually I'd start working on it today but you were all fast :p. I'll give it a try

On Wed, Apr 22, 2015 at 10:48 AM David Rio Deiros notifications@github.com wrote:

Closed #87 https://github.com/librato/python-librato/issues/87.

— Reply to this email directly or view it on GitHub https://github.com/librato/python-librato/issues/87#event-287264213.