Commit Graph

45 Commits (93a7b38043cd724aed7306041cc48546be94611c)

Author SHA1 Message Date
Chris Goller 79b1e9ae5e Fix reporting stats to update uptime 2017-03-17 09:59:52 -05:00
Chris Goller 49d8ece940 Add structured logging to underlying http server 2017-03-06 15:16:45 -06:00
Chris Goller 9ac300cf19 Update to fix go linter issues 2017-03-06 10:11:52 -06:00
Chris Goller f60a358751 Merge branch 'master' into feature/#54-tr-enterprise-client
Conflicts:
	Makefile
	chronograf.go
	server/routes.go
	server/users.go
2017-02-23 23:26:09 -06:00
Chris Goller 6581dc7ec2 Add roles endpoint and switching between OSS and enterprise 2017-02-23 21:54:20 -06:00
Tim Raymond 6a9e61c740 Merge branch 'master' into feature/oauth-google
Conflicts:
	server/dashboards.go
	server/server.go
	ui/.eslintrc
	ui/src/index.js
2017-02-23 18:13:39 -05:00
Tim Raymond 1b5b568d2a Move OAuth configuration into server/server.go
This uses a provide() function in server/server.go, to push the
necessary oauth2.Provider and oauth2.Mux into the scope of the
server.Mux. This allows the server.Mux to configure its routes without
caring which Providers are enabled, which switches/ENVs are set etc. It
configures its routes optimistically and leaves the higher-order logic
to decide whether to actually invoke the logic used by the mux to
configure routes for that provider.
2017-02-23 17:17:28 -05:00
Tim Raymond 22a556e964 Add organization restriction on Heroku provider
This allows operators to permit access to Chronograf only to users belonging
to a set of specific Heroku organizations. This is controlled using the
HEROKU_ORGS env or the --heroku-organizations switch.
2017-02-21 13:09:42 -05:00
Tim Raymond 9a0b4d6251 Configure Mux to use Heroku OAuth2 provider
If a --token-secret, --heroku-client-id, and --heroku-secret are
provided to Chronograf, it will add Heroku as an OAuth2 provider. These
tokens can be obtained (as of this writing) by visiting your "manage
account" page, navigating to "Applications," and then clicking "Register
New API Client" under the "API Clients" section.
2017-02-16 12:56:59 -05:00
Chris Goller 2d691bb694 Add --public-url CLI option to support google oauth redirect uri 2017-02-14 23:34:15 -06:00
Chris Goller ae5e4edacf Add google oauth provider. Need redirect_uri 2017-02-14 23:11:11 -06:00
Chris Goller 3d8de02463 Fix go vet commiting of NewListener 2017-02-12 21:48:12 -06:00
Chris Goller df65557412 Add TLS w/ env vars TLS_CERTIFICATE/TLS_PRIVATE_KEY 2017-02-12 21:33:27 -06:00
Chris Goller 75cd6cebff Remove explorations from backend server 2017-02-01 15:09:02 -06:00
Chris Goller 2290d5b6de Add BASE_PATH env var to -basepath cli option 2017-01-28 10:47:30 -06:00
Tim Raymond 2fed6f92be Move Basepath prop to better match style
Since this is a flag that is being accepted by the application, it makes
sense to group it with the other flags. Also, the `json` struct tag was
a remnant from an earlier attempt at implementing this feature, and is
no longer necessary.
2017-01-27 19:15:56 -05:00
Tim Raymond 17ca110a11 Make basepath configureable
/chronograf was hard-coded for developing this feature. This adds a
--basepath flag that lets users configure what the basepath will
actually be
2017-01-27 17:00:08 -05:00
gunnaraasen 4bef66aff7 Add X-Chronograf-Version header 2017-01-23 23:29:12 -08:00
Chris Goller 636ebedf22 Add Github organization restriction to authentication 2017-01-06 11:39:20 -06:00
Mark Rushakoff eda39410e7 Miscellaneous lint cleanup 2016-12-20 12:59:56 -08:00
Chris Goller ca377f87d2 Merge pull request #700 from influxdata/jz-add-uptime
Add server uptime reporting
2016-12-19 16:10:14 -06:00
Jack Zampolin 502887417f Address PR comments 2016-12-19 13:29:33 -08:00
Jack Zampolin ca2ce3ffb6 Add server uptime reporting 2016-12-19 12:09:59 -08:00
Jade McGough f42f7166f9 fix bugs 2016-12-15 11:27:06 -08:00
Jade McGough 8fde9480f8 shorten TCPKeepAlive length 2016-12-07 15:17:27 -08:00
Will Piers 2d352b4c1a Return 418 when auth is turned off 2016-11-21 14:20:33 -07:00
Will Piers fe14fd74e3 Add users endpoints/storage plus me endpoint 2016-11-21 14:19:57 -07:00
Chris Goller 77b861d26e Add server error logging 2016-11-19 11:41:06 -06:00
gunnaraasen 84091227d7 Update reporting tag to use chronograf-ng 2016-11-16 15:25:12 -08:00
Chris Goller c5cdc9d3d3 Fix layouts to enforce uniqueness 2016-11-14 22:25:38 -06:00
Chris Goller 87de3bfdba Revert bin layouts for now 2016-11-14 22:17:09 -06:00
Chris Goller 1f82577610 Add layouts as bindata in case chronograf run as a single-file binary
Using my existing layout chaining, I added layouts wrapped in
go-bindata as the last option for loading layouts.  This means
that the data store is preferred over file system over bindata.

With this functionality, we can simply distribute the single-file
binary.
2016-11-14 19:07:38 -06:00
Chris Goller d2e011a350 Fix logger panic and put logging of queries into debug 2016-11-12 17:48:49 -06:00
gunnaraasen b463e999bc Add version option 2016-11-09 13:25:07 -08:00
Ross McDonald f36e1da982 Minor changes to packaging:
* Change default host from localhost to 0.0.0.0.

* Modify default database name to `chronograf-v1.db`.

* Change default port from 10000 to 8888.
2016-11-08 08:34:03 -06:00
Chris Goller 96ad89a773 Update default cli options to be 0.0.0.0 and 8888 2016-11-07 20:50:06 -06:00
Chris Goller 8fe8de3de1 Merge pull request #387 from influxdata/remove-mrfusion
Remove mrfusion name from source
2016-11-07 11:33:23 -06:00
Chris Goller 0d1579e4b9 Merge pull request #386 from influxdata/update-cli-options
Update cli options
2016-11-07 11:29:05 -06:00
Chris Goller d52b094b67 Remove mrfusion name from source 2016-11-07 11:22:23 -06:00
Chris Goller 96a135f2e4 Update cli/env options to use port 10000 and remove TLS for now 2016-11-07 11:09:51 -06:00
Chris Goller 6539839113 Update layouts to not use UUIDs in name and only use filesystem 2016-11-07 10:10:26 -06:00
Chris Goller a95c998300 Update to store alert information in boltdb 2016-11-03 19:52:13 -05:00
gunnaraasen b85a5be094 Add usage stats reporting 2016-10-28 14:34:55 -07:00
Chris Goller dd9f110533 Fix mux paths to be hardcoded; clarify server start; fix golint 2016-10-28 11:27:06 -05:00
Chris Goller 12348d72cb Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00