Commit Graph

31220 Commits (ddce5d383ad40bfa5a0b7a083129ae8fc0b636e7)

Author SHA1 Message Date
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
Michael Desa 119f901264
fix(notification/rule): use every from rule in task options in flux 2019-09-04 20:38:31 -04:00
Michael Desa 5ff6f8b9ca
fix(notification/rule): pivot table from monitor 2019-09-04 20:38:31 -04:00
Michael Desa 07e7309c48
fix(notification/rule): add colors to slack notifications 2019-09-04 20:38:31 -04:00
Stuart Carnie a6306b5f73
Merge pull request #14935 from influxdata/sgc/issue/4556
fix(task): Create tags using NewTags to ensure they are sorted
2019-09-04 17:01:03 -07:00
Mark Rushakoff c2f847299c ci: use latest staticcheck
We were still referring to megacheck in tools.go; this confused
dependent projects also using staticcheck.
2019-09-04 16:34:45 -07:00
Stuart Carnie 15aaae5dd4
fix(task): Create tags using NewTags to ensure they are sorted 2019-09-04 15:25:44 -07:00
Ben Johnson 73ab90cad2
Merge pull request #14929 from influxdata/fix/remove-tsi-cardinality-stats-cache
fix(tsi1): Remove TSI cardinality stats cache
2019-09-04 15:06:22 -06:00
Ben Johnson 9237ee6a40
fix(tsi1): Remove TSI cardinality stats cache 2019-09-04 14:48:22 -06:00
Christopher Henn dd95578940 fix(ui): sort alerting history page from newest to oldest
Previously it was displaying oldest to newest.
2019-09-04 13:45:44 -07:00
Chris Goller d47afacb6f
fix(onboarding): remove fancy scrollbar that hides content (#14931)
e2e tests are failing because the fancyscroll bar component hides
the admin step during certain points in onboarding.

We were able to reproduce when the form in the admin step had been
marked as valid.

The use of the scrollbar in the setting seemed unneeded as it could
be rendered in a quite small window.

Therefore, we removed the scrollbar altogether for now.

Co-authored-by: Christopher Henn <chris@chrishenn.net>
2019-09-04 14:42:01 -05:00