Commit Graph

30880 Commits (92bb5119826d1a635175b1d6b358650335ce22d3)

Author SHA1 Message Date
Christopher Wolff 92bb511982 chore: update to latest Flux 2019-08-21 09:59:01 -06:00
Andrew Watkins d39069f881
feat(alerts): introduce edit endpoint overlay (#14713) 2019-08-20 15:10:30 -07:00
Jacob Marble 26d29f7aa5
chore(storage): remove metric storage_retention_checks_total (#14719) 2019-08-20 14:39:08 -07:00
Jade McGough 4523064b6d
fix(kv): check createdat and updatedat should be identical (#14699) 2019-08-20 14:16:40 -07:00
alexpaxton 450b85f80e
refactor(ui): introduce "Load Data" tab (#14709)
* refactor(ui): extend url activator to check on deeper URLs

* refactor(ui): create load data nav and page components

* refactor(ui): update telegrafs, scrapers, and buckets to use load data nav

* refactor(ui): update side nav and router to expose load data tab

* chore(ui): update changelog

* refactor(ui): update link to telegrafs page from status page

* refactor(ui): fix broken routes

* refactor(ui): make settings page tabs consistent with load data tabs

* refactor(ui): appease the linter gods

* refactor(ui): attempt to fix e2e tests
2019-08-20 10:24:49 -07:00
Jonathan A. Sternberg b35552721c
fix(query/control): handle flux errors from the table iterator in the controller (#14715) 2019-08-20 12:20:40 -05:00
kelwang 99cebbbdc1
Merge pull request #14714 from influxdata/create_task_in_stack
chore(http): split taskservice from check and notification
2019-08-20 11:20:15 -04:00
Lyon Hill 0b247cce5b
feat(task): Remove token's from task structures (#14712)
* feat(task): Remove token's from task structures

We had previously removed token's from the task api but left the token in place in several locations in the stack.
Now we can cleanly remove the extra tokens.
2019-08-20 08:42:40 -06:00
Kelvin Wang 03f6214d0e chore(http): split taskservice from check and notification 2019-08-19 18:56:17 -04:00
kelwang 06a76374ca
Merge pull request #14705 from influxdata/fix_routing_key
fix(notification/pagerduty): routingKey encode
2019-08-19 14:06:26 -04:00
Andrew Watkins 286d57b0ba
feat(notifications): create notification endpoint overlay (#14693)
* chore: update swagger definitions

* feat(endpoints): introducer endpoint overlay

* wip: change endpoint type

* feat(endpoint): add inputs for supported endpoint types

* wip: connect create endpoint to API

* feat: implement create endpoint

* alerts(e2e): add createEndpoint command

* chore: update swagger
2019-08-19 10:57:20 -07:00
alexpaxton 8ef3d9e94c
refactor(ui): replace local Tabs with Clockface Tabs (#14697)
* refactor(ui): create shared component for settings pages

* refactor(ui): use clockface tabs in settings nav

* refactor(ui): ensure all settings pages use SettingsTabbedPage component

* refactor(ui): replace TabsContentHeader with SettingsTabbedPageHeader

* refactor(ui): remove unused logic from when tasks page was rendered in 2 places

* refactor(ui): add testID to searchWidget

* refactor(ui): standardize use of SearchWidget across settings pages

* refactor(ui): delete locally defined Tabs components

* refactor(ui): appease the linter gods
2019-08-19 10:41:17 -07:00
Jade McGough 7771cd7a7b
chore(authorizer): simplify permissions for alerts and notifications (#14701) 2019-08-19 10:39:25 -07:00
Deniz Kusefoglu b90cfc91e5
feat: add check tags (#14700)
* Enable getChecks

* Fix EditCheck check getting

* Fix threshold null bugs

* Add CheckTagSet editing

* Remove console.log
2019-08-19 10:25:00 -07:00
Michael Desa 86cca67de1
Merge pull request #14703 from influxdata/fix/check-generated-flux
fix(notification/check): assign flux pipeline to data and replace durations with every
2019-08-19 13:14:03 -04:00
Michael Desa 14bcbb962b
Merge pull request #14704 from influxdata/fix/http-notification-rule
fix(notification/rule): remove println and add json struct tag for http
2019-08-19 13:03:25 -04:00
Kelvin Wang 23c31c09cb fix(notification/pagerduty): routingKey encode 2019-08-19 12:41:15 -04:00
Michael Desa bef3de49fa
fix(notification/rule): remove println and add json struct tag for http 2019-08-19 11:57:59 -04:00
Michael Desa a0ff0594c7
feat(notification/check): trim yield from flux if provided 2019-08-19 10:39:51 -04:00
Michael Desa e5dc16fb92
fix(notification/check): assign flux pipeline to data and replace durations with every 2019-08-19 09:00:24 -04:00
Michael Desa ed853290a3
Merge pull request #14695 from influxdata/feat/notification-flux
feat(notifiction_rule): create notification rule task
2019-08-19 07:51:18 -04:00
Michael Desa 38319dae4f
feat(notification/rule/http): generate correct flux for http
notification rule
2019-08-19 07:31:46 -04:00
Alirie Gray 7da6055fd7
Merge pull request #14694 from influxdata/tasks/find-by-name
feat(tasks): add ability to find tasks by name
2019-08-16 14:43:50 -07:00
Stuart Carnie 5a6fb2232c
Merge pull request #14674 from influxdata/sgc/issue/4321
fix(storage): Ensure ResponseWriter flushes all buffered data
2019-08-16 13:21:01 -07:00
Stuart Carnie f60c2ec3ba
fix(reads): Remove issue reference from test per feedbakc 2019-08-16 13:00:06 -07:00
Michael Desa 8e56c36737
feat(notification_rule): create notification rule task
feat(notification_rule): generate base flux for notification rule

wip: saving state

fix(notification/endpoint): add comment about weird requirements

feat(notification_rule): create notification rule task
2019-08-16 15:43:15 -04:00
Alirie Gray 28089fdb59 feat(tasks): add ability to find tasks by name 2019-08-16 12:07:11 -07:00
alexpaxton 1f499d599a
refactor(ui): scrub alerting ui copy (#14682)
* refactor(ui): rename Alerting related page titles

* refactor(ui): update copy in alerting index empty state

* refactor(ui): shrink dashed buttons slightly

* refactor(ui): update copy in VEO and alerting overlays

* refactor(ui): ensure AND in rule builder is a different color

* refactor(ui): fix linter error for reals
2019-08-16 11:34:26 -07:00
Stuart Carnie 3ca751cfd6
fix(reads): ResponseWriter truncates values for last series
The ResponseWriter would truncate the last series if the byte size of
the points frames exceeded the writeSize constant, causing a Flush to
occur and the cumulative ResponseWriter.sz to reset to zero. Because
ResponseWriter.sz was not incremented for each frame, it remained at
zero, which resulted in the final Flush short circuiting.

This commit implements the Size method for the cursors.Array types
to be used to estimate the size of frame. This is in place of calling
the Protocol Buffer `Size` function, which can be very expensive.
2019-08-16 10:36:40 -07:00
Stuart Carnie 0b20c227b4
feat(reads): A series of helpers to produce a SeriesCursor
This allows the data/gen package to be used to produce a SeriesCursor
for generated data that can be used in testing by the reads package.
2019-08-16 10:36:30 -07:00
Stuart Carnie 9964312bad
feat(cursors): Implement Size method so it doesn't panic
Returns the size (in bytes) of the associated array. Used by
the reads.ResponseWriter to estimate the size of buffered data.
2019-08-16 10:34:43 -07:00
Stuart Carnie 0054562014
feat(gen): Add Copy(tsdb.<type>Array) method to Values
This allows data generators to produce tsdb arrays, which are
useful for testing
2019-08-16 10:33:41 -07:00
Michael Desa 2710fac45f
Merge pull request #14686 from influxdata/feat/create-task-from-check
feat(check): pass ownerID to task on create
2019-08-16 12:28:41 -04:00
Deniz Kusefoglu 6bfce8483f
feat: check threshold conditions (#14680)
* Fix alert-ids in AlertBuilder

* Render deadman or threshold depending on check

* Add threshold condition cards

* swap ComponentSpacer with FlexBox

* Remove unnecessary component props

* Remove extra nesting

* Better gets

* Fix linter erros in value input

* Disconnect CheckConditionsCard from redux

* Add tags inputs
2019-08-16 09:14:31 -07:00
Michael Desa a2a9eb5e49
feat(check): pass ownerID to task on create 2019-08-16 07:12:28 -04:00
kelwang 88047a7fae
Merge pull request #14667 from Zyqsempai/14644-change-notification-order
fix(notification/status): notification order
2019-08-16 06:20:03 -04:00
kelwang 3673fa0a92
Merge pull request #14684 from influxdata/check_owner_id
fix(notification/check): remove authorizationID
2019-08-16 06:18:59 -04:00
bpopovschi cc73c221b2 fix(notification/status): notification order 2019-08-16 11:34:55 +03:00
Kelvin Wang bbb4fbc50d fix(notification/check): remove authorizationID 2019-08-16 00:00:55 -04:00
kelwang 4e3025efe0
Merge pull request #14639 from influxdata/notification_endpoint
feat(influxdb): Add notification endpoint
2019-08-15 22:57:07 -04:00
Kelvin Wang 8a503b5a08 chore(authorizer): user org perm for endpoints 2019-08-15 22:41:29 -04:00
Kelvin Wang 64e42271be feat(cmd/launcher): add notification endpoint 2019-08-15 21:56:24 -04:00
Kelvin Wang c394391b8c feat(authorizer): add notification endpoint 2019-08-15 21:56:23 -04:00
Kelvin Wang c5100f3eae feat(http): add notification endpoint 2019-08-15 21:56:21 -04:00
Kelvin Wang 43fa754087 fix(kv): fix extra \x00 secret decoding 2019-08-15 21:56:20 -04:00
Kelvin Wang 61628671ed feat(kv): add notification endpoint
Co-authored-by: Jade McGough <jade@thezets.com>
2019-08-15 21:56:18 -04:00
Kelvin Wang f683f0dc46 feat(notification/endpoint): add endpoint struct
Co-authored-by: Jade McGough <jade@thezets.com>
2019-08-15 21:56:17 -04:00
Lyon Hill a8d7870689
feat(task): impersonate user on task execution (#14675)
* feat(task): impersonate user on task execution

Passing tokens to tasks is cumbersome and we needed a way to more easily create tasks. With this change we no longer need a token on task create. We take the user that created the task and pass that in as the "owner". As far as the task is concerned the owner is the source of permissions.

This is done by adding an additional field on task create that is OwnerID. We will no longer respect the token passed in and it will be deprecated soon.

Things to do still:
Task updates need to allow for owners to be set.
2019-08-15 18:31:52 -06:00
alexpaxton 53f6806df1
chore(ui): upgrade Clockface dependency to 0.0.25 (#14677)
* chore(ui): upgrade clockface dependency to latest

* refactor(ui): replace references to "ComponentSpacer" with "FlexBox"

* refactor(ui): update snapshot tests

* refactor(ui): appease the linter

* refactor(ui): appease the linter, again

* refactor(ui): WIP improve flaky e2e test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* test(e2e): refactor scraper tests
2019-08-15 17:04:06 -07:00
kelwang d01b91667d
Merge pull request #14679 from influxdata/notification_auth_id
fix(notification/rule): remove authID requirement
2019-08-15 19:54:18 -04:00