Commit Graph

851 Commits (69dea5b0ee0a535b8704d4c5585d9aa35a5e7bd1)

Author SHA1 Message Date
Andrew Watkins 40d6d4f526 Persist app state to localStorage 2017-02-02 11:54:56 -08:00
Andrew Watkins bdf1f01e10 Deconstruct PropTypes 2017-02-02 09:20:52 -08:00
Andrew Watkins 131d29d9aa Remove concept of 'explorations' 2017-02-01 12:34:18 -08:00
Jade McGough 428e34dc59 fix linting error 2017-02-01 11:29:52 -08:00
Jade McGough 7932c908ef simplify dashboard code 2017-02-01 10:05:26 -08:00
Alex P 26d23b95a8 Change CSS to fix usability issue from the community 2017-02-01 10:02:56 -08:00
Jade McGough 5ad61f61eb change dashboards via dropdown 2017-02-01 00:13:05 -08:00
Andrew Watkins b04f9d1a89 Add comment 2017-01-31 08:41:45 -08:00
Andrew Watkins addb78f350 Stop modifying columns in place 2017-01-31 08:41:35 -08:00
Andrew Watkins 42fb31b525 Line up comment 2017-01-31 08:40:44 -08:00
Hunter Trujillo 991fa6fdc3 Bug fixes and performance improvements. 2017-01-30 15:47:39 -08:00
Hunter Trujillo 8ac86ab88a Reuse shared sparse arrays for GC efficiency. Use fast.js methods to further optimize speed. 2017-01-30 08:05:57 -08:00
Hunter Trujillo d9e204e450 Memoize labeling (improves performance of that function 2x, reduces overall run time by 1/10x) 2017-01-29 15:27:02 -08:00
Hunter Trujillo b7c9243f3d Improve performance of the new function by a factor of 3-4x using a memoization technique. 2017-01-29 04:41:07 -07:00
Tim Raymond 2102b779f4 Merge branch 'master' into feature/tr-host-under-path
Conflicts:
  - CHANGELOG.md
2017-01-27 19:30:43 -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
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 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
Alex P ff465e27c5 Style radio buttons in config 2017-01-27 14:14:48 -08: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 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
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
Chris Goller de37286c46 Fix layout autoflow to handle multiple cells per layout 2017-01-27 13:15:50 -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 42815bfe74 dashboard graph rendering 2017-01-27 04:04:26 -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 abb96a0fb6 Revert "Revert "Bugfix/legend data order"" 2017-01-26 18:00:14 -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
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
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
Andrew Watkins 34a486a7cb Cleanup comments 2017-01-26 11:09:04 -08:00
Andrew Watkins 8581d6b4aa Include support for tags 2017-01-26 11:07:34 -08:00
Hunter Trujillo d70e22bf07 Fix format sent to Kapacitor for Telegram. 2017-01-25 16:22:59 -07:00
Hunter Trujillo 099da399f0 Guard against undefined series error. 2017-01-25 14:35:47 -07:00
Hunter Trujillo e10eeb66cf Cleanup. Passes linter. 2017-01-25 14:35:32 -07:00
Hunter Trujillo 2c65d3d825 Add dygraphSeries. Tests pass. 2017-01-25 14:25:03 -07:00
Andrew Watkins aa92f9d510 WIP handle duplicate field and measurement names
This solution can now handle an arbitrary number of
responses and series.  Once we munge the series out
into one flat collection, we utilize the index of each
series to identify duplicate labels.
2017-01-24 11:50:41 -08:00
Nathan Haugo b55ad59e48 Merge pull request #786 from influxdata/fix-alert-filter
Fix alert filter
2017-01-24 11:13:55 -08:00
Andrew Watkins 527c1ef604 WIP all the refactors and in teh darkness bind them 2017-01-23 21:14:39 -08:00
Andrew Watkins 147f0aba60 WIP Fix label ordering bug 2017-01-23 16:08:45 -08:00
Andrew Watkins 55c2887f36 Introduce Talk alert config 2017-01-23 13:07:37 -08:00
Andrew Watkins 431d0348d3 Merge pull request #790 from influxdata/remove-checkboxes
Remove checkboxes
2017-01-23 11:45:00 -08:00
Andrew Watkins 4709272817 Match order of keys 2017-01-23 11:30:10 -08:00
Andrew Watkins 4f3f12dcaa Remove state change only checkbox from Telegram 2017-01-23 11:27:01 -08:00
Andrew Watkins 512a854a4d Remove state change only checkbox from HipChat 2017-01-23 11:26:50 -08:00
Tim Raymond 37ce031071 Fix missing fields from non-default RP
When attempting to extract fields from a non-default retention policy in
the Data Explorer, fields would not appear. This was because the query
was sent without an explicit RP, which would use the default RP instead.
This adds an explicit RP to the SHOW FIELDS query.
2017-01-23 09:54:56 -05:00
Andrew Watkins e74c03f5eb Fix copy and templated string 2017-01-20 13:35:18 -08:00
Andrew Watkins 0a865e22e6 Fix laggy input typing 2017-01-20 13:22:08 -08:00
Andrew Watkins da5c1d3a0c Make AlertTable source of truth for search term 2017-01-20 12:43:18 -08:00
Andrew Watkins b63ce0a6af Fix duplicate children error spam 2017-01-20 12:27:17 -08:00
Andrew Watkins 855b36cc6c Fix filtering in alerts table 2017-01-20 12:27:00 -08:00
Jade McGough 1f42ca8943 add dashboardpage to router 2017-01-13 17:40:40 -08:00
Jade McGough 287b055f76 add link to individual dashboard page 2017-01-13 17:40:40 -08:00
Jade McGough dc04c9d5e4 get dashboards to load correctly 2017-01-13 17:40:40 -08:00
Andrew Watkins 1144047477 Merge pull request #766 from influxdata/rule-template
Rule template
2017-01-13 14:23:45 -08:00
Alex P ad0c6200c0 Make rule message placeholder more informative 2017-01-13 14:12:14 -08:00
Alex P b7dfae9ebf Move rule message templates to correct constants file 2017-01-13 14:02:31 -08:00
Chris Goller 1f0deddf49 Merge pull request #748 from influxdata/bugfix/tr-missing-kapa
Fix missing Kapacitor on Source index page
2017-01-13 14:29:14 -06:00
Tim Raymond 4e3be5f360 Fix missing Kapacitor on Source index page
When visiting the Sources page, any InfluxDB sources that had a
configured Kapacitor would not show them. This turned out to be racey
logic. Kapacitors for a particular source are fetched from the API. The
update to the component state happened outside of the promise chained
onto the API call, so the state update was racing against the fetch from
the API (and would always win, pushing the empty object).

Instead, the chained promises for each API fetch are collected, and each
promise updates a single kapacitors object. The final promise that
updates the state is then blocked on all those promises by Promise.all.

Performing updates like this saves some allocations, since we aren't
allocating an object for each source<->kapacitor pairing to send to
setState. It also reduces setState's work, since it doesn't have to
coalesce state updates.
2017-01-13 15:21:39 -05:00
Alex P c8b8410ca1 Show pointer cursor on template hover 2017-01-13 12:02:13 -08:00
Andrew Watkins e1e003b908 Add functionality to append templates to rule message 2017-01-13 11:56:17 -08:00
Andrew Watkins 0e420e80bc Merge pull request #770 from influxdata/add-source-bug
Fix not being able to add new source
2017-01-13 11:31:12 -08:00
Andrew Watkins d2eb8cea51 Fix not being able to add new source 2017-01-13 11:23:35 -08:00
Jade McGough f4e7e8c143 add links to hosts in alerts table 2017-01-13 00:27:12 -08:00
Andrew Watkins 2885c223ba Merge pull request #760 from influxdata/remove-checkboxes
Remove checkboxes
2017-01-12 15:27:39 -08:00
Andrew Watkins 79aafaf8fd Change template hover to text cursor 2017-01-12 15:22:50 -08:00
Andrew Watkins 26792779a1 Refactor rule message template tooltips 2017-01-12 15:09:33 -08:00
Chris Goller 5e78dda63d Merge pull request #758 from influxdata/unsafe-ssl
Unsafe ssl
2017-01-12 17:08:12 -06:00
Nathan Haugo 5de15eca21 Merge pull request #762 from influxdata/feature/596-select-host
Feature/596 select host
2017-01-12 14:53:15 -08:00
Andrew Watkins 3438723ec7 Merge pull request #765 from influxdata/get-range
Get range
2017-01-12 14:51:13 -08:00
Andrew Watkins 2f66af3e5a Add tests for range calc 2017-01-12 14:19:48 -08:00
Hunter Trujillo 1c808ed683 Merge branch 'feature/596-select-host' of github.com:influxdata/chronograf into feature/596-select-host 2017-01-12 14:59:13 -07:00
Hunter Trujillo e9362a2da9 Refactor to use async/await. 2017-01-12 14:59:07 -07:00
Andrew Watkins a6c058cb8b Export getRange to helper funciton 2017-01-12 13:44:22 -08:00
Alex P ef2f71e46e Create new CSS component page-header-dropdown 2017-01-12 13:16:38 -08:00
Alex Paxton 15567e769c Merge pull request #763 from influxdata/misc-ui-polish
Misc UI Polish
2017-01-12 11:10:50 -08:00
Alex P 1c170634d9 Make text selection readable app-wide, not just inputs 2017-01-12 10:59:04 -08:00
Alex P 3118dbbdfc Change style.css to chronograf.css to be more consistent and branded 2017-01-12 10:57:40 -08:00
Alex P e05ed8c2e6 Change kapacitor copy from Metric to Time-Series 2017-01-12 10:56:11 -08:00
Jade McGough be6d9a6c30 filter out hosts that don't match the current app 2017-01-12 06:48:52 -08:00
Jade McGough 80a29b0054 get apps for all hosts 2017-01-12 06:07:45 -08:00
Jade McGough e4f6c1d525 cleanup 2017-01-12 04:34:12 -08:00
Andrew Watkins 588605dde4 Update test paths 2017-01-11 16:20:28 -08:00
Andrew Watkins f32847b8d2 Rename src/chronograf to src/data_explorer 2017-01-11 16:00:56 -08:00
Andrew Watkins 8829013d13 Remove the send all explicitly checkbox from Telegram 2017-01-11 15:46:35 -08:00
Andrew Watkins 324fbc4971 Remove the send all explicitly checkbox from HipChat 2017-01-11 15:39:38 -08:00