Commit Graph

30894 Commits (11aae144b23c2c40fcf66e29b99d08efd3e25335)

Author SHA1 Message Date
Jonathan A. Sternberg 11aae144b2
feat(query): wrap the secret service for flux (#14732)
The secret service is wrapped to be compatible with the flux interface
to the secret service.

The organization id is not part of the flux interface so this code
extracts the organization id from the query context so that it can lookup
a secret within the organization.
2019-08-22 10:47:02 -05:00
Edd Robinson 24da008f81
Merge pull request #14729 from influxdata/er-delete-tracing
refactor(storage): add deeper tracing around deletes
2019-08-22 16:23:20 +01:00
Edd Robinson d160585a34 refactor(storage): add deeper tracing around deletes 2019-08-22 11:08:33 +01:00
alexpaxton 3b714995cf
chore(ui): upgrade Clockface dependency to 0.0.27 (#14736)
* chore(ui): upgrade Clockface dependency to latest

* chore(ui): address breaking FlexBoxChild changes

* chore(ui): address breaking PanelHeader changes

* chore(ui): update affected snapshots

* refactor(ui): attempt to fix e2e tests
2019-08-21 19:47:37 -07:00
Michael Desa 1d5e000cb1
Merge pull request #14721 from influxdata/fix/misc-alerting
fix(notification_rules): add misc fixes to UI and backend for alerts and notification
2019-08-21 18:30:11 -04:00
Lyon Hill 0778f90cfc
fix(task): Remove unnecessary auth lookups (#14733)
* fix(task): Remove unnecessary auth lookups

Currently we look up task authorization for all task lookups even if we are only
looking up the task for internal use's. We can keep the same interface but cutdown
on the amount of lookups we do by using seperate internal functions for task lookup
and task with id lookup
2019-08-21 15:56:33 -06:00
Michael Desa c433f50cec
chore(alerts_notifications): add misc changes to alerts ui for demo
Create view with checkID in NewVEO

fix ruleToDraftRule bug

Fix no thresholds error

Get correct view status for rendering cell

Fix editVEO flow

Add notification endpoint ID to initRule

Remove task type from check and notification rule

mock generate AST

use check query in EditCheckEO

wip

Create default http notification endpoint

Co-authored-by: Michael Desa <mjdesa@gmail.com>

Dont save view if no dashboardID in saveCheck

Execute queries in editCheckEO

Fix check remove bug

Disable Advanced view and multiple queries in check builder

Disable alerting button if draftQuery is not alertable

chore(kv/check): remove createCheckTask from KV as the result of #14728
2019-08-21 17:28:49 -04:00
Nathaniel Cook cfebb3b5a0 build(flux): update to Flux v0.40.1 2019-08-21 09:59:01 -06:00
Nathaniel Cook 7498c06d3f test(query): skip check and http_endpoint Flux tests 2019-08-21 09:59:01 -06:00
Nathaniel Cook 6a0fa44093 fix(query): update code for changes to scoped compiler 2019-08-21 09:59:01 -06:00
Nathaniel Cook 402068cdac build(flux): update to Flux v0.40.0 2019-08-21 09:59:01 -06:00
Nathaniel Cook 1b8ab3c2f2 fix(query): remove http.to and update test cases that used it 2019-08-21 09:59:01 -06:00
Christopher M. Wolff c61646d0f4 feat(query/stdlib): add an experimental "to" function (#14664) 2019-08-21 09:59:01 -06:00
Nathaniel Cook cd2bfb9b22 refactor(query/stdlib): update tests for new Flux test name conventions (#14669) 2019-08-21 09:59:01 -06:00
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