Commit Graph

31281 Commits (4fcf4c4ad1e70f9dfcd6ee94a59dc8c317afb557)

Author SHA1 Message Date
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
Christopher Henn b98552a6c6 fix(ui): remove limit dropdown from alerting history 2019-09-05 11:19:56 -07:00
kelwang 19980a9306
Merge pull request #14973 from influxdata/check_update_issue
fix(http): fix check update swagger
2019-09-05 14:17:12 -04:00
Kelvin Wang f1675a33d5 fix(http): fix check update swagger 2019-09-05 13:58:35 -04:00
Russ Savage adc2c605a6
fix(copy): minor copy updates (#14968)
* fix(copy): minor copy updates

* fix(copy): Make all getting started cards one line of text

* fix(copy): setup to set up
2019-09-05 10:50:58 -07:00
Michael Desa 69a97714f9
Merge pull request #14969 from influxdata/feat/toggle-cloud-alerting
feat(ui/src/shared/utils): toggle alerting feature flag for cloud
2019-09-05 13:34:37 -04:00
alexpaxton 9a5c698b29
refactor(ui): polish check editor header (#14970)
* refactor(ui): un-squish check header

* refactor(ui): polish appearance of check requirements popover
2019-09-05 10:28:26 -07:00
Michael Desa 0d98360de2
feat(ui/src/shared/utils): toggle alerting feature flag for cloud 2019-09-05 13:13:25 -04:00
Christopher Henn feda6dcd27 fix(ui): use linear interpolation in check plots
Closes #14943
2019-09-05 09:36:08 -07:00
kelwang 5e5b0ea4c1
Merge pull request #14778 from influxdata/query_endpoint_notification_rule
feat(http): add rule query endpoint
2019-09-05 11:58:51 -04:00
Mark Rushakoff 91864a3afa chore: upgrade editorconfig-checker
This avoids a module error in Go 1.13 from a poorly tagged transitive
test dependency that looks like:

gopkg.in/stretchr/testify.v1/assert: go.mod has non-....v1 module path
"github.com/stretchr/testify" at revision v1.4.0
2019-09-05 08:55:49 -07:00
Jonathan A. Sternberg bea3a18330
fix(query/stdlib): use auth correctly in the v1.databases() call (#14927)
The `v1.databases()` call did not correctly filter buckets based on
auth. Fortunately, it did not cause any improper permissions such as
allowing a person to see buckets that they had no read access to.

The error instead was that if a user did not have read access to one of
the buckets that was returned, the entire command would fail rather than
filter out the bucket that didn't have permissions.

This changes it so that if the user doesn't gets an unauthorized error
when accessing a bucket, it will filter it from the list instead of
failing. It also changes it so the error message is marked as
`ENotFound` instead of as an internal error.
2019-09-05 10:35:23 -05:00
Kelvin Wang d1dd460a92 fix(notification): offset must be smaller than every 2019-09-05 11:20:59 -04:00
Michael Desa 1244b90cb6
Merge pull request #14960 from influxdata/fix/remove-rule-pivot
fix(notification/rule): remove fieldsAsCols pivot from rules
2019-09-05 10:47:19 -04:00
Michael Desa 38f1598602
fix(notification/rule): filter statuses by current level if no previous 2019-09-05 10:30:11 -04:00
Kelvin Wang a83f8dd205 feat(http): add rule query endpoint 2019-09-05 10:22:07 -04:00
Michael Desa d96d21c5e1
fix(notification/rule): remove fieldsAsCols pivot from rules 2019-09-05 09:52:05 -04:00
Michael Desa d328844692
Merge pull request #14934 from influxdata/fix/slack-colors
fix(notification/rule): fix slack notification rules
2019-09-04 21:24:34 -04:00