Skip to content

Commit

Permalink
Merged pull request #1095 from influxdata/nc-alert-service
Browse files Browse the repository at this point in the history
Implementation of the Alert Service
  • Loading branch information
nathanielc committed Jan 5, 2017
2 parents 596074c + e998f94 commit af4c6ee
Show file tree
Hide file tree
Showing 145 changed files with 33,105 additions and 2,624 deletions.
93 changes: 0 additions & 93 deletions ALERT_DESIGN.md

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@

### Release Notes

A new system for working with alerts has been introduced.
This alerting system allows you to configure topics for alert events and then configure handlers for various topics.
This way alert generation is decoupled from alert handling.

Existing TICKscripts will continue to work without modification.

To use this new alerting system remove any explicit alert handlers from your TICKscript and specify a topic.
Then configure the handlers for the topic.

```
stream
|from()
.measurement('cpu')
.groupBy('host')
|alert()
// Specify the topic for the alert
.topic('cpu')
.info(lambda: "value" > 60)
.warn(lambda: "value" > 70)
.crit(lambda: "value" > 80)
// No handlers are configured in the script, they are instead defined on the topic via the API.
```

The API exposes endpoints to query the state of each alert and endpoints for configuring alert handlers.
See the API docs for more details.
The kapacitor CLI has been updated with commands for defining alert handlers.

This release introduces a new feature where you can window based off the number of points instead of their time.
For example:

Expand All @@ -29,6 +56,8 @@ stream
- [#898](https://github.com/influxdata/kapacitor/issues/898): Now when the Window node every value is zero, the window will be emitted immediately for each new point.
- [#1052](https://github.com/influxdata/kapacitor/issues/1052): Move alerta api token to header and add option to skip TLS verification.
- [#251](https://github.com/influxdata/kapacitor/issues/251): Enable markdown in slack attachments.
- [#1095](https://github.com/influxdata/kapacitor/pull/1095): Add new alert API, with support for configuring handlers and topics.


### Bugfixes

Expand Down
Loading

0 comments on commit af4c6ee

Please sign in to comment.