influxdb/services/admin
Jonathan A. Sternberg 477d6231db Update source files to pass vet checks for go 1.7
The vet checks for some files did not pass for go 1.7. As part of a
preliminary start to making go 1.7 work with this software, go vet
should pass.

Also updated the gogo/protobuf dependency which fixed the code generator
to work with go 1.7 too. Ran `go generate` on the entire repository to
ensure every file was up to date.
2016-09-14 15:01:22 -05:00
..
assets Proper password field 2016-09-09 22:30:17 -07:00
statik Update source files to pass vet checks for go 1.7 2016-09-14 15:01:22 -05:00
README.md
admin.go
config.go
config_test.go
service.go
service_test.go

README.md

InfluxDB Admin Interface

This is the built-in admin interface that ships with InfluxDB. The service is intended to have little overhead and minimal preprocessing steps.

How it works

Static assets, located in the assets directory, are embedded in the influxd binary and served from memory using a simple fileserver.

The admin UI itself uses React for the user interface to interact directly with the InfluxDB API, usually running on port 8086.

Building

The only step required to bundle the admin UI with InfluxDB is to create a compressed file system using statik as follows:

go get github.com/rakyll/statik  # make sure $GOPATH/bin is listed in your PATH
cd $GOPATH/src/github.com/influxdata/influxdb
go generate github.com/influxdata/influxdb/services/admin

The go generate ./... command will run statik to generate the statik/statik.go file. The generated go file will embed the admin interface assets into the InfluxDB binary.

This step should be run before submitting any pull requests which include modifications to admin interface assets.