Commit Graph

1558 Commits (3ead540f759fc24faef718386c61d8699568c7bc)

Author SHA1 Message Date
Tim Raymond 3ead540f75 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 a3f82670fc 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 4f7ebc9f00 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 faa56961ed 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 f47d2f3316 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
Alex Paxton 9db72a71f0 Merge pull request #844 from influxdata/ui-bugfix-842
Fix jank in hosts dropdown
2017-02-02 15:10:15 -08:00
Alex P 2bbdd3995a Make hosts dropdown menu less janky 2017-02-02 14:48:08 -08:00
Alex P efdcb9b22f Change z-index hack on react-grid-item so it no longer conflicts with dropdown menu 2017-02-02 14:47:43 -08:00
Alex Paxton 73a4448623 Merge pull request #840 from influxdata/css-fix-820
CSS Usability Fix
2017-02-01 10:12:36 -08:00
Alex P 7adbaf11fa Change CSS to fix usability issue from the community 2017-02-01 10:02:56 -08:00
Chris Goller ab3a74b5d2 Merge pull request #821 from influxdata/feature/sha256-builds
Update release builds to use SHA256 as well as MD5
2017-01-30 10:56:00 -06:00
Chris Goller e5a5092b7b Update release builds to use SHA256 as well as MD5 2017-01-30 10:08:42 -06:00
Chris Goller 1774bcf914 Merge pull request #819 from influxdata/feature/basepath-env-var
Add BASE_PATH env var to -basepath cli option
2017-01-28 10:59:28 -06:00
Chris Goller cfc3bf357f Add BASE_PATH env var to -basepath cli option 2017-01-28 10:47:30 -06:00
Chris Goller 2dbddaf84a Update circle to upload release packages 2017-01-27 19:58:15 -06:00
Regan Kuchan 4e57592804 Merge pull request #798 from influxdata/doc-updates
Update docs for 1.2-beta
2017-01-27 17:15:47 -08:00
Regan Kuchan ce073277af Add dashboards to README 2017-01-27 17:14:53 -08:00
Chris Goller ae116dcb87 Merge pull request #818 from influxdata/feature/update-dashboard-swagger
Update dashboard swagger  to use LayoutQuery instead of a string
2017-01-27 19:09:55 -06:00
Chris Goller 456b02a7b3 Update dashboard swagger definition to use LayoutQuery instead of a string 2017-01-27 19:08:40 -06:00
Regan Kuchan fd8592e3c4 Add advanced routing to README 2017-01-27 16:54:32 -08:00
Chris Goller a730f7885b Update release to 1.2.0-beta1 2017-01-27 18:43:42 -06:00
Regan Kuchan 51552cc7f0 Update Kapacitor alert nodes 2017-01-27 16:40:39 -08:00
Chris Goller 798fc50cea Merge pull request #814 from influxdata/feature/tr-host-under-path
Enable Chronograf to be hosted under any arbitrary path
2017-01-27 18:39:00 -06:00
Tim Raymond ee8b9345e9 Fix typo
Spelling is hard.
2017-01-27 19:31:57 -05:00
Tim Raymond 594c1fc587 Merge branch 'master' into feature/tr-host-under-path
Conflicts:
  - CHANGELOG.md
2017-01-27 19:30:43 -05:00
Tim Raymond 3752affedf Remove extraneous lines
One of these was from experimental work during working on this feature.
The other is just... well, extra.
2017-01-27 19:27:59 -05:00
Tim Raymond 31621b460d Make URLPrefixer use the chronograf.Logger
We have a unified structured logging package in Chronograf, and this
should use it.
2017-01-27 19:24:51 -05:00
Nathan Haugo 8a61ea1cdb Merge pull request #817 from influxdata/revert-807-revert-799-bugfix/legend-data-order
Revert "Revert "Bugfix/legend data order""
2017-01-27 16:24:10 -08:00
Nathan Haugo a87f81942d Revert "Revert "Bugfix/legend data order"" 2017-01-27 16:23:16 -08:00
Tim Raymond a0ba920046 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 e3186479cd Move URLPrefixer setup to mux, add default
URLPrefixer had nothing to do with assets, so it actually belongs up in
the mux, where we're assembling handlers together across the
application.

Also, the setup was painful to look at, and others will probably use the
same `Attrs`, so a `NewDefaultURLPrefixer` was added to spawn a prefixer
with only a prefix and a next handler.
2017-01-27 19:14:21 -05:00
Jade McGough e85fed1ddd Merge pull request #808 from influxdata/feature/614-dashboard-view
Feature/614 dashboard view
2017-01-27 15:49:14 -08:00
Jade McGough 4d8e82a6fd remove host from dashboardpage 2017-01-27 15:31:06 -08:00
Nathan Haugo 36b1ddd684 Merge pull request #797 from influxdata/bugfix/telegram#640
Fix format sent to Kapacitor for Telegram.
2017-01-27 15:19:28 -08:00
Nathan Haugo 7392848b10 Merge pull request #802 from influxdata/opsg-alert
OpsGenie Alert Config
2017-01-27 15:17:18 -08:00
Regan Kuchan 54b5c3dd47 Fix merge conflicts 2017-01-27 15:09:15 -08:00
Andrew Watkins 303d9505cd Update README 2017-01-27 14:43:50 -08:00
Andrew Watkins fc57502480 Remove call to setState 2017-01-27 14:39:34 -08:00
Andrew Watkins aff31e2eee Change default altert option to smtp 2017-01-27 14:39:34 -08:00
Andrew Watkins 52dd1a87f2 Trim whitespace 2017-01-27 14:39:34 -08:00
Andrew Watkins d2cfc10cbb Update CHANGELOG 2017-01-27 14:39:34 -08:00
Andrew Watkins a095b6085a Introduce opsgenie config 2017-01-27 14:37:50 -08:00
Hunter Trujillo 37970761a9 Fix linting. 2017-01-27 15:36:39 -07:00
Chris Goller 055a277ea7 Merge pull request #815 from influxdata/feature/go-1.7.5
Update circle's docker build tag to chronograf-20170127
2017-01-27 16:35:55 -06:00
Nathan Haugo 7a8d55c531 Merge pull request #813 from influxdata/feature/go-1.7.5
Update to Go version 1.7.5
2017-01-27 14:25:05 -08:00
Alex P 36fab8dadf Style radio buttons in config 2017-01-27 14:14:48 -08:00
Tim Raymond a60e545c7e Update CHANGELOG for #814 2017-01-27 17:11:37 -05:00
Tim Raymond 609b7a1d1a Setup front-end to work with a basepath
React-router and also the client that we use in the frontend need to be
informed on how to access the Chronograf backend when it's being hosted
on a route other than /. To accomplish this, a data attribute is written
into the `<div>` which serves as our React root. We then make the React
router aware of this if it's set and also pass the prefix to axios (our
front end HTTP client) by way of window.

Originally, it was desired to have the basepath accessible via an API,
but this proved to be impossible because to access that API, the front
end would already need to know the basepath. The technique we went with
was arrived at independently, but is also used by Jupityr notebooks
which encountered the same problem.
2017-01-27 17:00:08 -05:00
Tim Raymond cf243794af Improve docs on URL Prefixer
These were a little too brief. Hopefully these make it clearer to others
2017-01-27 17:00:08 -05:00
Tim Raymond e6a4635266 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