Commit Graph

31298 Commits (ea9cf13af69755c84efb5ec155d4ffd1b91a44b8)

Author SHA1 Message Date
Christopher Henn b63ca38c46 fix(ui): fix hidden endpoint and rule names in notification history
Closes #14995
2019-09-06 15:57:53 -07:00
Christopher Henn 14d059ac4d
fix(ui): upgrade giraffe to 0.16.3
Closes #15017
2019-09-06 15:38:02 -07:00
docmerlin (j. Emrys Landivar) c91ef8e398 fix(alerts and notifications): updates latest completed when status goes from inactive->active 2019-09-06 17:36:16 -05:00
Russ Savage 799838d327
fix(tagOps): remove options not implemented (#15031) 2019-09-06 15:10:02 -07:00
Christopher Henn ee2f2a6369
fix(ui): handle parsing Flux strings containing newlines
...in Flux CSVs.

Connect #15017
2019-09-06 14:49:53 -07:00
Chris Goller dbcdc8dc59
feat(notification/rule): add _version: 1 to HTTP body (#15028)
This adds the _version: 1 correctly to the body of the HTTP POST.

Additionally, this fixes the imports when using secrets.

The POSTed JSON body now is:

```json
{
  "_check_id": "046cac59e2aa3000",
  "_check_name": "High CPU User Usage",
  "_level": "crit",
  "_measurement": "notifications",
  "_message": "High CPU User Usage: rsavage.prod is crit",
  "_notification_endpoint_id": "046cad0c83aec000",
  "_notification_endpoint_name": "HTTP Endpoint",
  "_notification_rule_id": "046dff53d4183000",
  "_notification_rule_name": "HTTP Notification",
  "_source_measurement": "cpu",
  "_source_timestamp": 1567797375000000000,
  "_start": "2019-09-06T19:15:59Z",
  "_status_timestamp": 1567797376416632300,
  "_stop": "2019-09-06T19:16:20.362006739Z",
  "_time": "2019-09-06T19:16:20.609629338Z",
  "_type": "threshold",
  "_version": 1,
  "cpu": "cpu-total",
  "host": "rsavage.prod",
  "usage_user": 91.12278069517379
}
```
2019-09-06 16:21:27 -05:00
Michael Desa a1ffc5c8ab
Merge pull request #15026 from influxdata/fix/check-update
fix(ui/src/alerting/components/CheckCard): include entire check in update
2019-09-06 16:52:19 -04:00
kelwang c88284840b
Merge pull request #14962 from influxdata/fix_offset_must_be_smaller
fix(notification): offset must be smaller than every
2019-09-06 16:20:49 -04:00
Russ Savage f11dccd687
fix(http): remove template option (#15001) 2019-09-06 13:18:23 -07:00
Russ Savage 6513a8abfe
fix(check): increase max status message length (#15002)
* fix(check): increase max status message length

* fix(alertTemps): update template formatting
2019-09-06 13:17:40 -07:00
Michael Desa 82e4df5d6f
fix(ui/src/alerting/components/CheckCard): include entire check in update
Closes https://github.com/influxdata/influxdb/issues/15022

After we switched to using PUT in the API, we'll need to include the
entire check in our update request. Ideally we could just always use
PATCH, but due to a defect in the API we currently cannot.
2019-09-06 16:04:00 -04:00
Nathaniel Cook 83cb7fce3b build(flux): update to Flux v0.44.1 2019-09-06 11:37:32 -06:00
kelwang f08ec9ce5d
Merge pull request #15013 from influxdata/http_notification_endpoint
feat(notification/endpoint): add headers to http endpoint
2019-09-06 13:07:37 -04:00
Lyon Hill 2b75d20570
fix(task): Update task in scheduler to show updated logs. (#15008)
The current behavior is that the update is pushed into the scheduler,
and the scheduler cherry pick's what it needs. This leaves the task itself out
meaning any logging the scheduler did was not going to have the new task information in it.
2019-09-06 10:38:56 -06:00
Kelvin Wang d08122124f feat(notification/endpoint): add headers to http endpoint 2019-09-06 12:38:42 -04:00
Michael Desa 4c55419ada
Merge pull request #15011 from influxdata/fix/pivot-deadman-check
fix(notification/check): pivot table before sending to deadman call
2019-09-06 12:04:41 -04:00
Lyon Hill a17277f27a
fix(task): Dont update updatedAt on latestCompleted updates (#15009)
We need to only update the updated at time when we recieve a external request for
an update. LatestCompleted is an internal request from the scheduler.
2019-09-06 09:45:10 -06:00
Michael Desa 354746cb1b
fix(notification/check): pivot table before sending to deadman call
Discovered that the deadman table needs to be pivoted before the data
can be passed to deadman.
2019-09-06 11:40:17 -04:00
Kelvin Wang db33f4bd24 fix(http): post bucket validation. 2019-09-06 11:24:52 -04:00
Lyon Hill 5d6bb3fced
fix(task): clean up offset when removed in script (#14961)
When the flux script removes a offset it should be removed from the task
2019-09-06 08:26:50 -06:00
Michael Desa 5e6e84aee5
Merge pull request #15005 from influxdata/fix/deadman-check
fix(notification/check): remove the aggregateWindow from the deadman query
2019-09-06 10:22:10 -04:00
Michael Desa 2ae2b06c57
fix(notification/check): remove the aggregateWindow from the deadman query
If the user specifies an aggregate window in the query they provide us,
we remove it so that we can property detect the deadman. This is not the
solution we will want long term, but should be sufficient for now.
2019-09-06 10:03:33 -04:00
Russ Savage 225f426e08
fix(slack): remove option for token in UI (#14998)
* fix(slack): remove option for token in UI

* fix(slack): fix linting

* fix(slack): updating tests

* fix(slack): updating go tests

* fix(slack): fixing js test
2019-09-05 22:28:35 -07:00
Chris Goller 8367d8d252
feat(notification/rule): add JSON body for the HTTP POST (#14994)
The body of the JSON webhook would be:
{
        "version": 1,
        "rule_name": notification._notification_rule_name,
        "rule_id": notification._notification_rule_id,
        "endpoint_name": notification._notification_endpoint_name,
        "endpoint_id": notification._notification_endpoint_id,
        "check_name": r._check_name,
        "check_id": r._check_id,
        "check_type": r._type,
        "source_measurement": r._source_measurement,
        "source_timestamp": r._source_timestamp,
        "level": r._level,
        "message": r._message,
}
2019-09-05 20:38:02 -05:00
alexpaxton 0a3d5804e0
fix(ui): alerting polish (#14982)
* fix(ui): allow creating of check from first time widget

* refactor(ui): polish layout of endpoint dropdown

* refactor(ui): provide default URLs in endpoint overlay form

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

* refactor(ui): ensure edit endpoint can be canceled

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

* refactor(ui): move endpoint error out of footer

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

* refactor(ui): appease the linter

* fix(ui): use correct slack and http url defaults

* chore(ui): remove obsolete stylesheet

* fix(ui): remove GET and PUT options from http method dropdown

* fix(ui): capitalize form labels in endpoint form

* fix(ui): change default endpoint name to be type agnostic

* fix(ui): appease linter

* refactor(ui): shrink check message template field

* refactor(ui): reverse sort of threshold levels in check builder
2019-09-05 16:19:42 -07:00
alexpaxton 77a59538e6
refactor(ui): settings navigation (#14990)
* refactor(ui): move tokens tab to load data page and update navbar

* refactor(ui): prefix all settings page urls with "settings"

* refactor(ui): expose settings tabs in navbar as sub-items

* chore(ui): update changelog

* refactor(ui): fix URLs in e2e tests
2019-09-05 16:17:22 -07:00
Andrew Watkins e3f31a3109
Merge pull request #14992 from influxdata/fix/bucket-order
fix: move system buckets to end of list
2019-09-05 16:02:21 -07:00
Nathaniel Cook cd2d9cb031 build(flux): update to Flux v0.44.0 2019-09-05 16:51:33 -06:00
Andrew Watkins e616e0fee4
chore(alerting): add default message templates (#14988)
* chore(alerts): add message defaults to check and endpoint creation

* chore(alerts): time machine is two words :)
2019-09-05 15:50:34 -07:00
Andrew Watkins a344305456 fix: move system buckets to end of list 2019-09-05 15:47:04 -07:00
Chris Goller da359f2ce2
feat(notification/rule): add auth and content-type headers for… (#14986)
The basic auth headers use a function that will soon be in flux that
renders usernames and passwords into `Basic <b64 u and p>`

This work assumes that AuthMethod has been set as well as the
appropriate secrets
2019-09-05 17:32:28 -05:00
Michael Desa afc65465a7
Merge pull request #14984 from influxdata/fix/slack-rule-details
fix(notification/rule): conditionally include url and token for slack rule
2019-09-05 18:18:31 -04:00
Andrew Watkins 55b2f78be6 chore(alerts): time machine is two words :) 2019-09-05 15:08:27 -07:00
Andrew Watkins 3fd68bf88f chore(alerts): add message defaults to check and endpoint creation 2019-09-05 15:06:06 -07:00
Michael Desa 79a6b353e3
fix(notification/rule): conditionally include url and token for slack rule
Previously, we expected that both token and url would be provided, but
we've become aware that the user may provide either or both of them.
2019-09-05 18:00:45 -04:00
Alirie Gray 53dd900a04
Merge pull request #14870 from influxdata/feat/pagerduty
feat(notification/rule): add pagerduty notification rule
2019-09-05 14:52:02 -07:00
Christopher Henn 723423aa87 fix(ui): fix max call stack exceeded error when parsing CSV
When parsing a Flux CSV file with hundreds of thousands of lines for the
"Raw Data View", we would see a

    Maximum call stack size exceeded

error. This was because every line in the CSV was being passed as an
argument in a single `Array.prototype.push` call, and there are
[limits][0] to how many arguments can be passed to a function.

This commit avoids passing the arguments all at once.

[0]: https://stackoverflow.com/questions/22747068/is-there-a-max-number-of-arguments-javascript-functions-can-accept

Closes #14566
2019-09-05 14:42:51 -07:00
Alirie Gray e7e5b60cbb test(alerts): update time in pagerduty test 2019-09-05 14:31:15 -07:00
Chris Goller a5395e323f feat(pagerduty): update pagerduty generation schema
We chose pretty arbitrary data from monitor to add to the pagerduty
schema.

We'll need to see how this renders and make adjustments.

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2019-09-05 14:16:01 -07:00
Michael Desa af89f38d04 feat(notification/rule): add pagerduty notification rule 2019-09-05 14:16:01 -07:00
kelwang 726fc659ab
Merge pull request #14981 from influxdata/slack_token_not_required
fix(notification/endpoint): remove slack token requirement
2019-09-05 17:05:18 -04:00
Kelvin Wang b933e007cb fix(notification/endpoint): remove slack token requirement 2019-09-05 16:48:34 -04:00
Nathaniel Cook ed01f5a16f build(flux): update to Flux v0.43.1 2019-09-05 14:22:56 -06:00
kelwang c2b6a33bb2
Merge pull request #14979 from influxdata/add_any_check_level
fix(notification): fix the any checkLevel  string
2019-09-05 15:40:51 -04:00
Michael Desa 50209810bc
Merge pull request #14977 from influxdata/fix/put-to-patch-for-checks
fix(ui): change patchCheck to putCheck for updating check in UI
2019-09-05 15:38:59 -04:00
Kelvin Wang d34f3b96b5 fix(notification): fix the any checkLevel string 2019-09-05 15:11:43 -04:00
Russ Savage 2f7b2dedcb
feat(security): add SECURITY.md file (#14878)
* feat(security): initial doc

* fix(security): updated text; add 1.6.x
2019-09-05 12:09:15 -07:00
Michael Desa d5d5d307ae
fix(ui): change patchCheck to putCheck for updating check in UI
The easiest path forward for fixing
https://github.com/influxdata/influxdb/issues/14966 is to have the UI
use put instead of patch for updating checks. Long term, we will want to
be able to use patch, but as of now patch is not functional.
2019-09-05 14:52:51 -04:00
Christopher Henn da5291407c fix(ui): prevent crash when opening line visualization options
For whatever reason, we now have xy views stored with an empty array in
the `colors` field. Attempting to open the visualization options for
such a view results in a crash.

This commit updates the `ColorSchemeDropdown` to access the `colors`
field more defensively.

Closes #14950
2019-09-05 11:27:04 -07:00
Jade McGough 6e6e7fef9b
feat(http): block writes to system buckets (#14920) 2019-09-05 11:22:18 -07:00