Commit Graph

1551 Commits (e9e6c0b7a3b8d4b4ff7380b4c3142043c67617cb)

Author SHA1 Message Date
Andrew Watkins e9e6c0b7a3 Persist app state to localStorage 2017-02-02 11:54:56 -08:00
Andrew Watkins 6e95f46ce2 Deconstruct PropTypes 2017-02-02 09:20:52 -08:00
Andrew Watkins 68ec7dfd26 Remove concept of 'explorations' 2017-02-01 12:34:18 -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
Tim Raymond 9d2e9111ef Make prefixer support multiple tags, chunked enc
The prefixer needs to not only replace `src="` attributes as it
currently does because that is not the only place a relative URL can
appear. It needs to also prefix URLs found in CSS which can also come
from the downstream http.ResponseWriter.

This adds support for an arbitrary list of patterns that will cause the
prefixer to insert its configured prefix. This is currently set to look
for `src`, `href`, and `url()` attributes.

Also, because we are modifying the stream, we need to suppress the
Content-Length generated by any downstream http.Handlers and instead
enable Transfer-Encoding: chunked so that we can stream the modified
response (we don't know apriori how many times we'll perform a
prefixing, so we can't calculate a final Content-Length). This is
accomplished by duplicating the Headers in the wrapResponseWriter that
is handed to the `Next` handler. We also handle the chunking and
Flushing that needs to happen as a result of using chunked transfer
encoding.
2017-01-27 17:00:08 -05:00
Tim Raymond 33256914b3 Add URL Prefixer
In order to support hosting chronograf under an arbitrary path[1], we
need to be able to rewrite all the URLs that are served in HTML and CSS.
Take, for example, the scenario where Chronograf is to be hosted under
`/chronograf` using Caddy and this example Caddyfile:

```
localhost:2020
gzip
proxy /chronograf localhost:8888 {
  without /chronograf
}
```

Chronograf will not load properly when visiting
`http://localhost:2020/chronograf` because the requests for CSS, and
fonts will go to `http://localhost:2020/app-somegianthash.js` when they
should go to `http://localhost:2020/chronograf/app-somegianthash.js`.
This is the essence of issue #721.

To solve this, we add a URLPrefixer http.Handler, that acts as a
middleware. It inserts itself between any upstream handlers, and the
handler that was passed to it as its `Next` parameter and searches for
`src="` attributes. Upon discovering one of these attributes, it writes
the detected attribute and then the configured prefix. It then continues
writing the stream to the upstream http.ResponseWriter until
encountering another attribute until EOF.
2017-01-27 17:00:08 -05:00
Chris Goller f67e5678a7 Update circle's docker build tag to chronograf-20170127 2017-01-27 15:57:49 -06:00
Chris Goller 1adec2dd1d Update to node 6.9.4 and mention support for node 7 2017-01-27 15:53:25 -06:00
Chris Goller d32635ef88 Update to Go version 1.7.5 2017-01-27 15:31:04 -06:00
Andrew Watkins 6f7dcc7eb0 Merge pull request #803 from influxdata/kapacitor-defaults
Add default values for kapacitor config
2017-01-27 13:29:23 -08:00
Nathan Haugo 87b859eb00 Merge pull request #812 from influxdata/bugfix/layout-gaps
Fix layout autoflow to handle multiple cells per layout
2017-01-27 11:26:38 -08:00