Commit Graph

12 Commits (f1d9f8beb0deae9153bb34a4064a4d9fbcafabaa)

Author SHA1 Message Date
Chris Goller e0d73b6cf9 Update meta nodes to respect insecure skip verify 2018-02-14 14:28:02 -05:00
Chris Goller ef1cadb7a4 Add basic auth or JWT tokens for meta queries 2017-12-04 18:07:08 -06:00
Chris Goller 3947d5181f Update schema for /permissions endpoint to have scopes 2017-02-27 13:31:38 -06:00
Chris Goller 6581dc7ec2 Add roles endpoint and switching between OSS and enterprise 2017-02-23 21:54:20 -06:00
Chris Goller 08271f25ef Add roles to chronograf 2017-02-23 16:02:53 -06:00
Chris Goller d31b6411d5 Add enterprise allowance test 2017-02-21 18:48:03 -06:00
Chris Goller c33757175d Add tests for meta users and roles 2017-02-21 18:34:53 -06:00
Tim Raymond 6e8a0f9309 Update Enterprise Client
When this was originally developed, many exisiting patterns in the
application weren't established yet. This adds support for the
chronograf.Logger as well as removes some cruft that just isn't used
anymore. Interfaces have also been updated to align with what they are
today.
2017-02-08 10:06:19 -05:00
Tim Raymond 9459f731e7 Make Open() idempotent and required
Open() wasn't a hard requirement, so it was a little surprising to need
to use it when creating an enterprise.Client in some circumstances but
not others. This returns an error when Querying if Open() was not
called, preventing panics which would otherwise result. Granted, this
would only be encountered by developers, but I believe a helpful error
is sometimes more useful than a mysterious panic when making libs that
devs actually enjoy using. Furthermore, a preflight check to see whether
dataNodes was initialized makes the Open() method idempotent.
2017-02-02 16:18:26 -08:00
Tim Raymond c3a3848472 Add convenience func to create enterprise client
Many different ways exist to specify the URL for a meta node, including
host:port, scheme://host:port. This provides a function that handles the
irregularities associated with meta URLs and initializes a Client with a
control.Client for introspecting the associated cluster.
2017-02-02 16:16:39 -08:00
Tim Raymond efb7cf67bd Fix issue where data nodes would not advance
container/ring wasn't being used correctly, so all requests were
directed to the first data node in the ring. This ensures (via test)
that queries are properly distributed among available data nodes.
2017-02-02 16:16:39 -08:00
Tim Raymond 202fff9451 Implement initial Influx Enterprise client
This is an initial implementation of the Influx Enterprise client. It
incorporates introspection of a cluster to determine available data
nodes and issues requests in a round-robin fasion to those nodes.

Currently all nodes are assumed to be healthy, so there is no pruning of
the available data node pool.
2017-02-02 16:08:09 -08:00