Commit Graph

1763 Commits (c372a393a15fc8744c01bb718ee8311619f22b7c)

Author SHA1 Message Date
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
Andrew Watkins 1c11ef32e7 Merge pull request #803 from influxdata/kapacitor-defaults
Add default values for kapacitor config
2017-01-27 13:29:23 -08:00
Nathan Haugo 5ad0292de6 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
Chris Goller 62acebc5c4 Update CHANGELOG to add #774 2017-01-27 13:18:56 -06:00
Chris Goller de37286c46 Fix layout autoflow to handle multiple cells per layout 2017-01-27 13:15:50 -06:00
Nathan Haugo 5d8cabab09 Merge pull request #811 from influxdata/feature/procstat-layout
Add procstat layout
2017-01-27 10:37:52 -08:00
Chris Goller 85e39567cb Update CHANGELOG to add procstat layout 2017-01-27 12:04:40 -06:00
Chris Goller d76a5dc4e4 Add net and procstat to README 2017-01-27 12:03:50 -06:00
Chris Goller 03c546cfd2 Add layout for telegraf's procstat measurement 2017-01-27 11:59:30 -06:00
Chris Goller 1649b83473 Update CHANGELOG to mention `inputs.net` telegraf layout 2017-01-27 11:36:21 -06:00
Chris Goller 5936c96201 Fix typo in new_apps script 2017-01-27 11:31:02 -06:00
Chris Goller 8ed1cbd557 Add layout for telegraf's net measurement 2017-01-27 11:30:41 -06:00
Chris Goller c28298263e Merge pull request #809 from influxdata/feature/update-release-build
Update build script to output JSON for website and MD for GH
2017-01-27 10:22:12 -06:00
Chris Goller 45ebe5d385 Update build script to output JSON for website and MD for GH 2017-01-27 10:07:15 -06:00
Jade McGough 4ee483aec2 cleanup 2017-01-27 05:41:03 -08:00
Jade McGough 30a36dd4e4 cleanup 2017-01-27 05:32:59 -08:00
Jade McGough 0682091fd1 get graphs to display 2017-01-27 05:24:26 -08:00
Jade McGough e0efda3fdb don't show endless loading if there are no dashboards 2017-01-27 05:10:44 -08:00
Jade McGough 203088830c fix dashboards routes 2017-01-27 04:59:13 -08:00
Jade McGough 626ee4081e fix bugs 2017-01-27 04:51:31 -08:00
Jade McGough e460f32dbc augment boltdb to store dashboard query objects 2017-01-27 04:29:38 -08:00
Jade McGough 42815bfe74 dashboard graph rendering 2017-01-27 04:04:26 -08:00
Jade McGough 1140179a4b fix dashboard unmarshalling 2017-01-27 01:23:19 -08:00
Jade McGough 7e06dbae59 remove dropdown menu for now 2017-01-27 00:54:28 -08:00
nathan haugo c8b7c39e00 Revert to c6441d4b4f 2017-01-26 18:13:27 -08:00
Nathan Haugo 8ab8a3a693 Merge pull request #807 from influxdata/revert-799-bugfix/legend-data-order
Revert "Bugfix/legend data order"
2017-01-26 18:05:54 -08:00
Nathan Haugo 2292123940 Merge pull request #806 from influxdata/revert-804-revert-799-bugfix/legend-data-order
Revert "Revert "Bugfix/legend data order""
2017-01-26 18:01:09 -08:00
Nathan Haugo abb96a0fb6 Revert "Revert "Bugfix/legend data order"" 2017-01-26 18:00:14 -08:00
Nathan Haugo 8f331d6b0d Revert "Bugfix/legend data order" 2017-01-26 17:57:50 -08:00
Nathan Haugo 20a149fe5c Merge pull request #804 from influxdata/revert-799-bugfix/legend-data-order
Revert "Bugfix/legend data order"
2017-01-26 17:56:08 -08:00
Nathan Haugo 662ab26b91 Revert "Bugfix/legend data order" 2017-01-26 17:55:21 -08:00
Nathan Haugo 9e29983b21 Merge pull request #799 from influxdata/bugfix/legend-data-order
Bugfix/legend data order
2017-01-26 17:54:19 -08:00
Nathan Haugo c6441d4b4f Merge pull request #791 from influxdata/talk-config
Introduce Talk alert config
2017-01-26 17:52:15 -08:00
Nathan Haugo 744b15d0f9 Merge pull request #800 from influxdata/bugfix/duplicate-defaults#769
Duplicate defaults appearing in InfluxDB configuration
2017-01-26 17:51:41 -08:00
Andrew Watkins a4c39832e9 Add default values for kapacitor config 2017-01-26 17:51:37 -08:00
Hunter Trujillo d057452971 Fix Telegram parse-mode support for HTML and Markdown. 2017-01-26 17:31:51 -07:00
Hunter Trujillo 0e39dcecef Add reducer spec for shared/sources. Add nodemon script to package.json to help with TDD. Fix actual issue: duplicate defaults in sources. 2017-01-26 16:55:05 -07:00
Regan Kuchan e2ef61d6d7 Update Chronograf version number 2017-01-26 14:52:10 -08:00
Regan Kuchan 55db76b067 Update INSTALLATION and GETTING_STARTED 2017-01-26 14:51:24 -08:00
Jade McGough bcca3e3e8f add dashboard content, make request to API 2017-01-26 14:04:51 -08:00
Andrew Watkins 3d35c5bfa2 Cleanup 2017-01-26 11:21:56 -08:00