Commit Graph

31242 Commits (0669c22bbd5a9e796ca24c697d1992d765442a4b)

Author SHA1 Message Date
Christopher Henn 67ab3ac6ba fix(ui): fix telegraf setup link 2019-09-09 14:59:53 -07:00
Andrew Watkins 57fb96a46d
Merge pull request #15072 from influxdata/chore/alphabetical
chore(alerts): alphabetize endpoints in rule dropdown
2019-09-09 14:55:12 -07:00
Andrew Watkins 848936b5dc fix(alerts): empty state 2019-09-09 14:35:14 -07:00
Christopher Henn 6247b09837 feat(ui): remove token requirement when saving tasks 2019-09-09 14:11:12 -07:00
Andrew Watkins 7f07270ece feat(alters): sort and filter alert cards 2019-09-09 13:48:52 -07:00
kelwang 3c87dc027f
Merge pull request #15075 from influxdata/fix_http_endpoint
fix(notification/endpoint): http bearer token
2019-09-09 16:43:03 -04:00
Kelvin Wang 0ec2db0785 fix(notification/endpoint): http bearer token 2019-09-09 16:20:23 -04:00
alexpaxton 32d11209ac
refactor(ui): alerting details polish (#15056)
* refactor(ui): add default values for deadman condition

* refactor(ui): limit values to 2 decimal places when dragging thereshold handles

* refactor(ui): prevent system buckets from being deleted or renamed

* refactor(ui): indicate which buckets are system buckets

* refactor(ui): prevent user from creating buckets starting with _

* refactor(ui): remove system bucketes from generate token overlay

* refactor(ui): remove system buckets from bucket dropdowns

* chore(ui): update changelog
2019-09-09 13:12:20 -07:00
Andrew Watkins cc22607bd7
Merge pull request #15068 from influxdata/fix/disable-check-save
fix(alerting): disable save button if query is invalid
2019-09-09 13:04:27 -07:00
Andrew Watkins 80101cfc7e chore(alerts): alphabetize endpoints in rule dropdown 2019-09-09 13:01:54 -07:00
kelwang 86c36a38fd
Merge pull request #15067 from influxdata/fix_outside_range
fix(notification/check): range outside logic
2019-09-09 15:31:51 -04:00
Andrew Watkins 9b89ce6da1 chore(e2e): only run new test once 2019-09-09 12:25:30 -07:00
Andrew Watkins 64c3c4f922 fix(alerting): disable save button if query is invalid 2019-09-09 12:13:47 -07:00
Kelvin Wang 99ec1c45af fix(notification/check): range outside logic 2019-09-09 15:11:08 -04:00
Palakp41 a2a15f84a0
Merge pull request #15058 from influxdata/update-bucket-system
Update bucket system
2019-09-09 11:25:49 -07:00
Christopher Henn fb57feefac feat(ui): upgrade influxdb-templates to v0.8.0 2019-09-09 11:03:02 -07:00
Palak Bhojani 808ab1902e Update code styling and refactor 2019-09-09 10:52:24 -07:00
Palak Bhojani 4ea2650ff1 Fix prettier issues 2019-09-09 10:43:33 -07:00
Palak Bhojani 0c3ec69f37 Disallow system buckets to be deleted or renamed 2019-09-09 10:28:01 -07:00
Palak Bhojani 719f296d2d wip 2019-09-09 10:08:39 -07:00
Chris Goller 80e3efa37a
feat(kv): random ids without comma, space, backslash for org a… (#15049)
feat(kv): random ids without comma, space, backslash for org and bucket
2019-09-08 03:11:20 -05:00
Chris Goller 6527ba090b fix(kv): remove extraneous function calls 2019-09-08 02:53:46 -05:00
Chris Goller 7d299454db feat(rand): comment the specific ID bytes removed 2019-09-08 02:52:49 -05:00
Chris Goller 623224614e feat(kv): random ids without comma, space, backslash for org and bucket
At times snowflake id generation would create org and bucket IDs with
characters that had special meaning for the storage engine.

The storage engine concats the org and bucket bytes together into a
single 128 bit value.  That value is used in the old measurement
section.  Measurement was transformed into the tag, _measurement.

However, certain properties of the older measurement data location
are still required for the org/bucket bytes.  We cannot have
commas, spaces, nor backslashes.

This PR puts a specific ID generator in place during the creation of
orgs and buckets.  The IDs are just random numbers but with each
of the restricted chars incremented by one.  While this changes the
entropy distribution somewhat, it does not matter too much for our
purposes.

... because now org and bucket ids are checked for previous existence
transactionally in the key-value stores.  If the ID does already exist
then we try to generate a new key up to 100 times.
2019-09-08 01:50:05 -05:00
Andrew Watkins 2c871428c2
Merge pull request #15029 from influxdata/fix/link-to-check
fix(alertHistory): stop linking to dead resources
2019-09-06 22:21:34 -07:00
Chris Goller 71f7e0e0e5
fix(notification/rule): pagerduty does not need token and url (#15048)
fix(notification/rule): pagerduty does not need token and url
2019-09-06 23:53:44 -05:00
Andrew Watkins 7f50a0a078 fix: prettier 2019-09-06 21:14:57 -07:00
Andrew Watkins 446a9112e2 refactor(alerts): use context to pass resourceIDs to rows
Co-Authored-By: Michael Desa <mjdesa@gmail.com>
2019-09-06 21:14:57 -07:00
Andrew Watkins e5b2f8c11f chore: make enum singular and move selector into dir 2019-09-06 21:14:12 -07:00
Andrew Watkins f58b39bc55 fix(alertHistory): stop linking to dead resources
Author: Michael Desa <mjdesa@gmail.com>
2019-09-06 21:11:19 -07:00
Chris Goller 5848056ea7 fix(notification/rule): pagerduty does not need token and url
Previously, the URL would cause pages to be sent to incorrect addresses.
Token is only needed for PagerDuty REST API and not events.
2019-09-06 23:07:37 -05:00
Chris Goller 55e124735c
fix(notification/rule): pagerduty helper functions need key ar… (#15047)
fix(notification/rule): pagerduty helper functions need key args
2019-09-06 22:00:45 -05:00
Chris Goller bf1e198714 fix(notification/rule): pagerduty helper functions need key args
The pagerduty helper functions did not have the correct syntax.
2019-09-06 21:27:09 -05:00
Michael Desa 04b28a0add
Merge pull request #15044 from influxdata/fix/remove-base-filter
fix(notificationRules): remove initial tag filter from draft rule
2019-09-06 21:53:25 -04:00
Jade McGough c1cd152363
feat(http): Add bucket types (#15045) 2019-09-06 17:52:54 -07:00
Michael Desa d969a57be3
fix(notificationRules): remove initial tag filter from draft rule
Closes https://github.com/influxdata/influxdb/issues/15000

When submitted, with the default draft rule, the request would fail due
to the backend attempting to contruct flux with empty string values.
2019-09-06 20:30:34 -04:00
Alirie Gray 51b1c58aaa
Merge pull request #15043 from influxdata/fix/notif-rule-pagerduty
fix(notification/rule): convert time, trigger, severity
2019-09-06 16:52:04 -07:00
Michael Desa 78e1a989fd
Merge pull request #15034 from influxdata/fix-ui-newline-parsing
fix(ui): handle parsing Flux strings containing newlines
2019-09-06 19:43:12 -04:00
Chris Goller 9dcdbd05a1 fix(notification/rule): convert time, trigger, severity
Semantically, we've done the following:

// name of the client sending the alert.
client: "influxdata"

// url of the client sending the alert.
client_url: the endpoint URL for now (needs to change to rule)

// The class/type of the event, for example ping failure or cpu load
class: check's name

// Logical grouping of components of a service, for example app-stack
group: source measurement

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2019-09-06 18:34:42 -05:00
alexpaxton f2aff59a75
refactor(ui): update check builder design (#15040)
* refactor(ui): move check message to its own card

* refactor(ui): ensure builder cards fill width of overlay

* refactor(ui): make conditions boxes fill width of parent

* refactor(ui): allow check properties card to grow

* refactor(ui): remove matching rules card

* chore(ui): update changelog
2019-09-06 16:30:39 -07:00
Michael Desa c80eb929d0
Merge pull request #15027 from influxdata/limit-alerting
feat: limit monitoring and alerting
2019-09-06 19:16:53 -04:00
Deniz Kusefoglu a3e576f9d7
feat(ui): limit monitoring and alerting
Remove unused action

Co-Author: Deniz Kusefoglu <deniz@influxdata.com>

add Limits and LimitsStatus to cloud types

Add asset limits for checks, rules and endpoints

Filter blocked endpoint types

fix: type error

Co-Author:    Deniz Kusefoglu <deniz@influxdata.com>
2019-09-06 18:58:10 -04:00
Christopher Henn 73e467b671 fix(ui): change default every value for check to 1m
Closes #14942
2019-09-06 15:57:53 -07:00
Christopher Henn 151e1f94bc fix(ui): don't render thresholds outside of visible plot region
Closes #14965
2019-09-06 15:57:53 -07:00
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