Commit Graph

9 Commits (2c65b53ccf2e8c4a872deda0d3d013aef16d393f)

Author SHA1 Message Date
Chris Goller f3805c2130 Add interface and mock for sources 2016-09-29 17:09:22 -05:00
Chris Goller acdd1992e6 Update Database to be DB 2016-09-21 15:11:29 -07:00
Chris Goller a1645a45f8 Add simple influx backend through cli option. 2016-09-21 15:03:07 -07:00
Chris Goller 1d4d3668d8 Update query interface to take database and rp 2016-09-21 09:53:36 -07:00
Tim Raymond a89def2349 Merge branch 'develop' into feature/#42-influx-client 2016-09-16 09:51:58 -04:00
Chris Goller ea96c1c292 Add API for monitored services.
Closes #49

The /sources/{id}/monitored endpoint will return an array of Services
describing services this data source has monitoring data for.

The response has a `TagKey` and `TagValue` that can be used to specifically
query for the service.
2016-09-15 11:28:51 -05:00
Tim Raymond 3116731abe Add influx client
This adds a simple HTTP influx client to fetch time series results. It
implements the TimeSeries interface. Also included is an implementation
of the mrfusion.Results interface that wraps results returned from the
influx client.

We only support HTTP connections (there's also a UDP influx client). We
also require that all Queries to Influx be fully-qualified--they should
include the database and retention policies in the query.

This also makes Resuls a json.Marshaler. In order to hand results back
to clients, we need to guarantee that those results can be serialized to
json in some form. json.Marshaller is just such a guarantee!
2016-09-14 13:46:43 -04:00
Chris Goller 4709051eb1 Add mock implementation of timeseries and explorerererererer
Signed-off-by: Will Piers <wpiers0405@gmail.com>
2016-09-12 18:32:44 -05:00
Chris Goller 9c4d645552 Add interfaces to backend data and logic. 2016-09-12 14:43:37 -05:00