Commit Graph

1553 Commits (7c1f911ac2f0c10fc128f3665aacd1a7a6ffc374)

Author SHA1 Message Date
Alex Paxton 7c1f911ac2 Merge pull request #844 from influxdata/ui-bugfix-842
Fix jank in hosts dropdown
2017-02-02 15:10:15 -08:00
Alex P a9ac01e233 Make hosts dropdown menu less janky 2017-02-02 14:48:08 -08:00
Alex P 9e99e64543 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 bc3680b7a4 Merge pull request #840 from influxdata/css-fix-820
CSS Usability Fix
2017-02-01 10:12:36 -08:00
Alex P 26d23b95a8 Change CSS to fix usability issue from the community 2017-02-01 10:02:56 -08:00
Chris Goller d9881fef21 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 edf966f609 Update release builds to use SHA256 as well as MD5 2017-01-30 10:08:42 -06:00
Chris Goller f88c43cdbb 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 2290d5b6de Add BASE_PATH env var to -basepath cli option 2017-01-28 10:47:30 -06:00
Chris Goller 383fe74a49 Update circle to upload release packages 2017-01-27 19:58:15 -06:00
Regan Kuchan 72b61651c8 Merge pull request #798 from influxdata/doc-updates
Update docs for 1.2-beta
2017-01-27 17:15:47 -08:00
Regan Kuchan 9a3d87e953 Add dashboards to README 2017-01-27 17:14:53 -08:00
Chris Goller 3ecf539bff 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 97ee53f49d Update dashboard swagger definition to use LayoutQuery instead of a string 2017-01-27 19:08:40 -06:00
Regan Kuchan 7d703703f9 Add advanced routing to README 2017-01-27 16:54:32 -08:00
Chris Goller 6d43811bb7 Update release to 1.2.0-beta1 2017-01-27 18:43:42 -06:00
Regan Kuchan f49d9d4eb3 Update Kapacitor alert nodes 2017-01-27 16:40:39 -08:00
Chris Goller 745ad17da7 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 c7f31a5074 Fix typo
Spelling is hard.
2017-01-27 19:31:57 -05:00
Tim Raymond 2102b779f4 Merge branch 'master' into feature/tr-host-under-path
Conflicts:
  - CHANGELOG.md
2017-01-27 19:30:43 -05:00
Tim Raymond 99bd4f369a 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 0c02aeedc0 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 e2a2f04b3e 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 6a31c55104 Revert "Revert "Bugfix/legend data order"" 2017-01-27 16:23:16 -08: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 2b6a05cf6f 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 f6fe95827d Merge pull request #808 from influxdata/feature/614-dashboard-view
Feature/614 dashboard view
2017-01-27 15:49:14 -08:00
Jade McGough cf32dcbd96 remove host from dashboardpage 2017-01-27 15:31:06 -08:00
Nathan Haugo 215215a5f7 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 ac96f5576c Merge pull request #802 from influxdata/opsg-alert
OpsGenie Alert Config
2017-01-27 15:17:18 -08:00
Regan Kuchan 04807d4a7e Fix merge conflicts 2017-01-27 15:09:15 -08:00
Andrew Watkins 9187b873ea Update README 2017-01-27 14:43:50 -08:00
Andrew Watkins 11e21ee7dc Remove call to setState 2017-01-27 14:39:34 -08:00
Andrew Watkins 53c967a883 Change default altert option to smtp 2017-01-27 14:39:34 -08:00
Andrew Watkins 8cc7c72965 Trim whitespace 2017-01-27 14:39:34 -08:00
Andrew Watkins 7e2a87f3d2 Update CHANGELOG 2017-01-27 14:39:34 -08:00
Andrew Watkins 60ce83206c Introduce opsgenie config 2017-01-27 14:37:50 -08:00
Hunter Trujillo f0c2856c38 Fix linting. 2017-01-27 15:36:39 -07:00
Chris Goller 540cd8689f 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 6e32203d92 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 ff465e27c5 Style radio buttons in config 2017-01-27 14:14:48 -08:00
Tim Raymond eadcf773ec Update CHANGELOG for #814 2017-01-27 17:11:37 -05:00
Tim Raymond 8425d2c3ed 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 2dfc52069e 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 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
Tim Raymond 14437af28d 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 4064817ac8 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 38c9244f71 Update circle's docker build tag to chronograf-20170127 2017-01-27 15:57:49 -06:00
Chris Goller 8f784a2498 Update to node 6.9.4 and mention support for node 7 2017-01-27 15:53:25 -06:00
Chris Goller f126f012eb Update to Go version 1.7.5 2017-01-27 15:31:04 -06:00