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! |
||
---|---|---|
cmd/mr-fusion-server | ||
docs | ||
influx | ||
models | ||
restapi | ||
ui | ||
.gitignore | ||
Dockerfile | ||
Godeps | ||
README.md | ||
circle.yml | ||
package.json | ||
stores.go | ||
swagger.yaml | ||
timeseries.go | ||
transformer.go | ||
webpack.config.js |
README.md
mrfusion
Includes a Dockerfile that builds a container suitable for Heroku.
In order to push to heroku, make sure you've logged into Heroku normally with...
heroku login
Add the acceptance server git remote...
git remote add acceptance https://git.heroku.com/mrfusion-acc.git
When you run heroku apps
you should see "mrfusion-acc".
Then install the container plugin
heroku plugins:install heroku-container-registry
Then log into the container registry with...
heroku container:login
Build and push the web container by running...
heroku container:push web